Skip to content

Commit

Permalink
polish CI jobs
Browse files Browse the repository at this point in the history
 - update actions versions
 - only build on pull request
 - add missing compilers, so I know when backwards
   compatibility is broken
  • Loading branch information
Paul Dreik committed Jan 11, 2025
1 parent 2938fb2 commit 9ab08a1
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 24 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/clang18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: clang 18

on: [pull_request]

jobs:
build:
name: Compiles with clang 18
runs-on: ubuntu-24.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time clang-18
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=clang++-18
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: cppcheck

on: [push, pull_request]
on: [pull_request]


jobs:
Expand All @@ -10,14 +10,14 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install cppcheck
- name: run cppcheck
run: cppcheck/run_cppcheck.sh
- name: store the cppcheck output as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: 'cppcheck/out/*'

6 changes: 3 additions & 3 deletions .github/workflows/deterministic.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test deterministic operation

on: [push, pull_request]
on: [pull_request]


jobs:
Expand All @@ -10,7 +10,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time disorderfs
- name: bootstrap
Expand All @@ -23,7 +23,7 @@ jobs:
run: testcases/verify_deterministic_operation.sh
- name: store logs as artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

29 changes: 29 additions & 0 deletions .github/workflows/gcc10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: gcc 10

on: [pull_request]


jobs:
build:
name: Compiles with gcc 10
runs-on: ubuntu-22.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time gcc-10 g++-10
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=g++-10
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

8 changes: 4 additions & 4 deletions .github/workflows/gcc11.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: gcc 11

on: [push, pull_request]
on: [pull_request]


jobs:
build:
name: Compiles with gcc 11
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time gcc-11 g++-11
- name: bootstrap
Expand All @@ -23,7 +23,7 @@ jobs:
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

6 changes: 3 additions & 3 deletions .github/workflows/gcc12.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc 12

on: [push, pull_request]
on: [pull_request]


jobs:
Expand All @@ -10,7 +10,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time gcc-12 g++-12
- name: bootstrap
Expand All @@ -23,7 +23,7 @@ jobs:
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

6 changes: 3 additions & 3 deletions .github/workflows/gcc13.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gcc 13

on: [push, pull_request]
on: [pull_request]


jobs:
Expand All @@ -10,7 +10,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: add ppa
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Expand All @@ -27,7 +27,7 @@ jobs:
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

28 changes: 28 additions & 0 deletions .github/workflows/gcc14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: gcc 14

on: [pull_request]

jobs:
build:
name: Compiles with gcc 14
runs-on: ubuntu-24.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time gcc-14 g++-14
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=g++-14
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

29 changes: 29 additions & 0 deletions .github/workflows/gcc9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: gcc 9

on: [pull_request]


jobs:
build:
name: Compiles with gcc 9
runs-on: ubuntu-22.04

steps:
- name: checkout
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time gcc-9 g++-9
- name: bootstrap
run: ./bootstrap.sh
- name: configure
run: ./configure CXX=g++-9
- name: build
run: make
- name: check
run: make check
- name: store the logs as an artifact
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

8 changes: 4 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: build variants

on: [push, pull_request]
on: [pull_request]


jobs:
build:
name: Runs the quality script
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev time libc6-i386 gcc-multilib g++-multilib valgrind libc++-dev libc++abi-dev clang
- name: run do_quality_checks.sh
run: ./do_quality_checks.sh
- name: store logs as artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: '**/*.log'

6 changes: 3 additions & 3 deletions .github/workflows/ubuntu-default.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: ubuntu default build

on: [push, pull_request]
on: [pull_request]

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: install packages
run: sudo apt install build-essential nettle-dev
- name: bootstrap
Expand Down

0 comments on commit 9ab08a1

Please sign in to comment.