Skip to content

Commit

Permalink
win-build.yml: try to composite action (setup steps as dependency to …
Browse files Browse the repository at this point in the history
…execute once)
  • Loading branch information
sebres authored Nov 5, 2024
1 parent 61031dd commit cabe30c
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- "main"
- "core-8-branch"
- "core-8-6-branch"
- "ci-*"
tags:
- "core-**"
permissions:
Expand Down Expand Up @@ -55,7 +56,24 @@ jobs:
throw "nmake exit code: $lastexitcode"
}
timeout-minutes: 30
gcc_setup:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
working-directory: win
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: git mingw-w64-x86_64-toolchain make
timeout-minutes: 10
- name: Checkout
uses: actions/checkout@v4
timeout-minutes: 5
gcc:
needs: gcc_setup
runs-on: windows-2022
defaults:
run:
Expand All @@ -71,15 +89,6 @@ jobs:
- "--enable-symbols=all"
# Using powershell means we need to explicitly stop on failure
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: git mingw-w64-x86_64-toolchain make
timeout-minutes: 10
- name: Checkout
uses: actions/checkout@v4
timeout-minutes: 5
- name: Prepare
run: |
touch tclStubInit.c tclOOStubInit.c
Expand All @@ -92,11 +101,15 @@ jobs:
CFGOPT: --enable-64bit ${{ matrix.config }}
timeout-minutes: 5
- name: Build
run: make all
run: make -j4 all
timeout-minutes: 5
- name: Build Test Harness
run: make tcltest
run: make -j4 tcltest
timeout-minutes: 5
- name: Info
run: |
ulimit -a || echo 'get limit failed'
echo 'puts exe:\t[info nameofexecutable]\nver:\t[info patchlevel]\t[if {![catch tcl::build-info ret]} {set ret}]\nlib:\t[info library]\nplat:\t[lsort -dictionary -stride 2 [array get tcl_platform]]' | make runtest || echo 'get info failed'
- name: Run Tests
run: make test
timeout-minutes: 30
Expand Down

0 comments on commit cabe30c

Please sign in to comment.