Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiple configuration for github workflows #1

Merged
merged 7 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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