Repository navigation
Run CI build against Tcl 9.0. Stop all support for Tcl 8.5 #293
This file contains hidden or 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: Linux | |
| on: [push] | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| runs-on: ubuntu-26.04 | |
| strategy: | |
| matrix: | |
| compiler: | |
| - "gcc" | |
| - "g++" | |
| - "clang" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Checkout tclconfig | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: tcltk/tclconfig | |
| ref: main | |
| path: tclconfig | |
| - name: Setup Environment (compiler=${{ matrix.compiler }}) | |
| run: | | |
| sudo apt-get install tcl9.0-dev libgdbm-dev liblmdb-dev | |
| mkdir "$HOME/install dir" | |
| echo "CFGOPT=--with-tcl=/usr/lib/tcl9.0 --with-gdbm --with-lmdb" >> $GITHUB_ENV | |
| echo "CC=$COMPILER" >> $GITHUB_ENV | |
| env: | |
| COMPILER: ${{ matrix.compiler }} | |
| OPTS: ${{ matrix.compiler }} | |
| - name: Configure | |
| run: | | |
| ./configure $CFGOPT --disable-zipfs "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" || { | |
| cat config.log | |
| echo "::error::Failure during Configure" | |
| exit 1 | |
| } | |
| - name: Build | |
| run: | | |
| make || { | |
| echo "::error::Failure during Build" | |
| exit 1 | |
| } | |
| - name: Run Tests | |
| run: | | |
| make test || { | |
| echo "::error::Failure during Test" | |
| exit 1 | |
| } | |
| env: | |
| ERROR_ON_FAILURES: 1 | |
| - name: Test-Drive Installation | |
| run: | | |
| make install || { | |
| echo "::error::Failure during Install" | |
| exit 1 | |
| } | |
| - name: Create Distribution Package | |
| run: | | |
| make dist || { | |
| echo "::error::Failure during Distribute" | |
| exit 1 | |
| } |