mac #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mac | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-12, macos-13, macos-14] | |
tclbranch: | |
- core-8-6-13 | |
- main | |
runs-on: ${{ matrix.os }} | |
env: | |
TCLSUBDIR: ${{ matrix.tclbranch }} | |
TCLDIR: /tmp/tcl/${{ matrix.tclbranch }} | |
steps: | |
- name: Update brew | |
run: | | |
brew update | |
- name: Checkout tcl-cffi | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Cache Tcl build | |
id: tcl-cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.TCLDIR }} | |
key: ${{ runner.os }}-${{ matrix.os }}-tcl-${{ env.TCLSUBDIR }} | |
- name: Checkout Tcl | |
if: steps.tcl-cache.outputs.cache-hit != 'true' | |
uses: actions/checkout@v4 | |
with: | |
repository: tcltk/tcl | |
ref: ${{ matrix.tclbranch }} | |
path: tcl-${{ matrix.tclbranch }} | |
- name: Build Tcl | |
if: steps.tcl-cache.outputs.cache-hit != 'true' | |
working-directory: tcl-${{ matrix.tclbranch }}/unix | |
run: | | |
mkdir build | |
cd build | |
../configure --prefix=${{ env.TCLDIR }} || (cat config.log && exit 1) | |
make | |
make install | |
- name: Configure | |
run: | | |
mkdir build | |
cd build | |
../configure --with-tcl=${{ env.TCLDIR }}/lib --disable-threadpool | |
- name: Make | |
run: | | |
cd build | |
make | |
- name: Test with dyncall | |
run: | | |
cd build | |
make test | |
env: | |
ERROR_ON_FAILURES: 1 |