Skip to content

Commit

Permalink
Add multiple configuration for github workflows (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock authored May 21, 2024
1 parent 0777a53 commit 86dce46
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
34 changes: 28 additions & 6 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,32 @@ defaults:
shell: bash
jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
compiler:
- "gcc"
- "clang"
compiler: ["gcc", "clang"]
configure: [""]
include:
- description: "default"
- compiler: gcc
configure: "--disable-c-pkgconfig --disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "no pkgcfg, pages, fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-pages --disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "no pages, fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-fsindex --disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "no fsindex, readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-readerchannel --disable-c-writerchannel --disable-c-vfs"
description: "no readedchannel, writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-writerchannel --disable-c-vfs"
description: "no writerchannel, vfs"
- compiler: gcc
configure: "--disable-c-vfs"
description: "no vfs"
name: build (${{ matrix.compiler }}, ${{ matrix.description }})
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,14 +42,16 @@ jobs:
run: |
sudo apt-get install tcl8.6-dev tcl-vfs
mkdir "$HOME/install dir"
echo "CFGOPT=--with-tcl=/usr/lib/tcl8.6" >> $GITHUB_ENV
echo "CFGOPT_COMMON=--with-tcl=/usr/lib/tcl8.6" >> $GITHUB_ENV
echo "CFGOPT_CUSTOM=$CONFIGURE" >> $GITHUB_ENV
echo "CC=$COMPILER" >> $GITHUB_ENV
env:
COMPILER: ${{ matrix.compiler }}
OPTS: ${{ matrix.compiler }}
CONFIGURE: ${{ matrix.configure }}
- name: Configure
run: |
./configure $CFGOPT "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" --enable-xz || {
./configure $CFGOPT_COMMON $CFGOPT_CUSTOM "--prefix=$HOME/install dir" "--exec-prefix=$HOME/install dir" || {
cat config.log
echo "::error::Failure during Configure"
exit 1
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Update 7z lib (xz/lzma2 support) from 23.01 to 24.05
* Fix compiler warnings in --enable-internal-debug mode
* Add a presentation from the original authors
* Add multiple configurations to github workflows

2024-05-18 Konstantin Kushnir <[email protected]>
* Provide successful operation when tcl files unavailable. CookFS should
Expand Down

0 comments on commit 86dce46

Please sign in to comment.