Skip to content

Commit

Permalink
Add Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed Apr 29, 2024
1 parent 9cbfacb commit f3b3fdb
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Linux
on: [push]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler:
- "gcc"
- "clang"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment (compiler=${{ matrix.compiler }})
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 "CC=$COMPILER" >> $GITHUB_ENV
env:
COMPILER: ${{ matrix.compiler }}
OPTS: ${{ matrix.compiler }}
- name: Configure
run: |
./configure $CFGOPT "--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
}
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Add the make recipe 'package'
* Make tests fail with an error on unsuccessful run
* Detect tclsh correctly on Windows platform
* Add Github workflow

2024-04-06 Konstantin Kushnir <[email protected]>
* Add basic benchmarks
Expand Down

0 comments on commit f3b3fdb

Please sign in to comment.