diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/win-build.yml | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml index 851774f..40b4a6e 100644 --- a/.github/workflows/win-build.yml +++ b/.github/workflows/win-build.yml @@ -21,9 +21,9 @@ jobs: # Using powershell means we need to explicitly stop on failure strategy: matrix: - symbols: - - "none" - - "symbols" + config: + - "OPTS=none" + - "OPTS=symbols" steps: - name: Checkout Tk uses: actions/checkout@v4 @@ -45,32 +45,32 @@ jobs: mkdir install cd install echo "INSTALLDIR=`pwd`" >> $GITHUB_ENV - - name: Build Tcl (OPTS=${{ matrix.symbols }}) + - name: Build Tcl (${{ matrix.config }}) run: | - &nmake -f makefile.vc release install OPTS=${{ matrix.symbols }} + &nmake -f makefile.vc release install ${{ matrix.config }} if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } working-directory: tcl/win - - name: Build Tk (OPTS=${{ matrix.symbols }}) + - name: Build Tk (${{ matrix.config }}) run: | - &nmake -f makefile.vc all OPTS=${{ matrix.symbols }} + &nmake -f makefile.vc all ${{ matrix.config }} if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } - - name: Build Test Harness (OPTS=${{ matrix.symbols }}) + - name: Build Test Harness (${{ matrix.config }}) run: | - &nmake -f makefile.vc tktest OPTS=${{ matrix.symbols }} + &nmake -f makefile.vc tktest ${{ matrix.config }} if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } - - name: Run Tk Tests (OPTS=${{ matrix.symbols }}) + - name: Run Tk Tests (${{ matrix.config }}) run: | - nmake -f makefile.vc test-classic OPTS=${{ matrix.symbols }} | tee out-classic.txt || { + nmake -f makefile.vc test-classic ${{ matrix.config }} | tee out-classic.txt || { echo "::error::Failure during Test" exit 1 } - nmake -f makefile.vc test-ttk OPTS=${{ matrix.symbols }} | tee out-ttk.txt || { + nmake -f makefile.vc test-ttk ${{ matrix.config }} | tee out-ttk.txt || { echo "::error::Failure during Test" exit 1 } @@ -86,15 +86,15 @@ jobs: CI_BUILD_WITH_MSVC: 1 shell: bash timeout-minutes: 15 - - name: Build Help (OPTS=${{ matrix.symbols }}) + - name: Build Help (${{ matrix.config }}) run: | - &nmake -f makefile.vc htmlhelp OPTS=${{ matrix.symbols }} + &nmake -f makefile.vc htmlhelp ${{ matrix.config }} if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } - - name: Install (OPTS=${{ matrix.symbols }}) + - name: Install (${{ matrix.config }}) run: | - &nmake -f makefile.vc install OPTS=${{ matrix.symbols }} + &nmake -f makefile.vc install ${{ matrix.config }} if ($lastexitcode -ne 0) { throw "nmake exit code: $lastexitcode" } @@ -106,10 +106,11 @@ jobs: working-directory: win strategy: matrix: - symbols: - - "no" - - "mem" - - "all" + config: + - "" + - "--enable-config=mem" + - "--enable-config=all" + - "--disable-shared" steps: - name: Install MSYS2 uses: msys2/setup-msys2@v2 @@ -131,7 +132,7 @@ jobs: mkdir "${HOME}/install_dir" echo "INSTALL_DIR=${HOME}/install_dir" >> $GITHUB_ENV working-directory: generic - - name: Configure and Build Tcl + - name: Configure and Build Tcl (${{ matrix.config }}) run: | ./configure $CFGOPT "--prefix=$INSTALL_DIR" || { cat config.log @@ -144,9 +145,9 @@ jobs: } echo "TCL_CONFIG_PATH=`pwd`" >> $GITHUB_ENV env: - CFGOPT: --enable-64bit --enable-symbols=${{ matrix.symbols }} + CFGOPT: --enable-64bit ${{ matrix.config }} working-directory: tcl/win - - name: Configure Tk (symbols=${{ matrix.symbols }}) + - name: Configure Tk (${{ matrix.config }}) run: | ./configure $CFGOPT "--prefix=$HOME/INSTALL_DIR" "--with-tcl=$TCL_CONFIG_PATH" || { cat config.log @@ -154,7 +155,7 @@ jobs: exit 1 } env: - CFGOPT: --enable-64bit --enable-symbols=${{ matrix.symbols }} + CFGOPT: --enable-64bit ${{ matrix.config }} - name: Build Tk run: | make all tktest || { |