Skip to content

Commit

Permalink
GITHUB: workflows/testing.yml: use cirun.sh for all CI jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Sep 9, 2023
1 parent 22e178e commit 3f5334e
Showing 1 changed file with 12 additions and 52 deletions.
64 changes: 12 additions & 52 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:

Focal-CI:
runs-on: ubuntu-latest
env: { CITAG: cifocal:latest }
steps:
# Checkout and fix actions/checkout messing up annotation of the fetched tag: actions/checkout#290
- uses: actions/checkout@v4
Expand All @@ -28,10 +29,10 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
# Run CI Stages
- name: Run CI Stages
# Build Assets
- name: Build Assets
run: |
time misc/cirun.sh --check --assets --x11
time misc/cirun.sh --check --assets
- uses: actions/upload-artifact@v3
if: success()
with: { name: docs, path: out/anklang-docs/ }
Expand All @@ -47,8 +48,7 @@ jobs:
Arch-Replay:
runs-on: ubuntu-latest
env: # INTERACTIVE: docker run -i --cap-add SYS_PTRACE -v $PWD:/anklang ...
RUN: docker run -v /home/runner/work/anklang/anklang:/anklang -w /anklang/ -t --rm ciarch
env: { CITAG: ciarch:latest }
steps:
# Checkout and fix actions/checkout messing up annotation of the fetched tag: actions/checkout#290
- uses: actions/checkout@v4
Expand All @@ -65,39 +65,20 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
# Configure Build
- name: Configure Build
# Run X11 GUI Tests
- name: Run X11 GUI Tests
run: |
git describe
misc/version.sh
echo 'prefix=/' > config-defaults.mk
cat config-defaults.mk
$RUN sudo chown builder:builder -R /anklang/ # gh-runner $UID != 1000
$RUN misc/version.sh
# Build binaries and check
- name: Make all check
run: |
$RUN make -j`nproc` all
$RUN make check
# Run X11 GUI tests
- name: Make x11test
run: |
$RUN make x11test-v
time misc/cirun.sh --check --x11
# Artifact upload from x11test
- uses: actions/upload-artifact@v3
if: always()
with:
name: x11test
path: out/x11test/
# Restore gh-runner $UID
- name: Cleanup
run: |
$RUN sudo chown `id -u`:`id -g` -R /anklang/

Lunar-Clang-Tidy:
runs-on: ubuntu-latest
env: # INTERACTIVE: docker run -i --cap-add SYS_PTRACE -v $PWD:/anklang ...
RUN: docker run -v /home/runner/work/anklang/anklang:/anklang -w /anklang/ -t --rm cilunar
env: { CITAG: cilunar:latest }
steps:
# Checkout and fix actions/checkout messing up annotation of the fetched tag: actions/checkout#290
- uses: actions/checkout@v4
Expand All @@ -114,37 +95,16 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
# Configure Build
- name: Configure Build
# Build and Run Clang-Tidy
- name: Build and Run Clang-Tidy
run: |
git describe
misc/version.sh
echo 'prefix=/' > config-defaults.mk
echo 'CC=clang-17' >> config-defaults.mk
echo 'CXX=clang++-17' >> config-defaults.mk
echo 'CLANG_TIDY=clang-tidy-17' >> config-defaults.mk
cat config-defaults.mk
cat config-defaults.mk
$RUN sudo chown ubuntu:ubuntu -R /anklang/ # gh-runner $UID != 1000
$RUN misc/version.sh
# Build binaries, docs and check
- name: Make all check
run: |
$RUN make -j`nproc` all
$RUN make check
- name: Make clang-tidy
run: |
$RUN make -j`nproc` clang-tidy
time misc/cirun.sh --check --clang-tidy
# Artifact upload from clang-tidy
- uses: actions/upload-artifact@v3
if: success()
with:
name: clang-tidy
path: out/clang-tidy/
# Restore gh-runner $UID
- name: Cleanup
run: |
$RUN sudo chown `id -u`:`id -g` -R /anklang/

Ping-IRC:
if: always()
Expand Down

0 comments on commit 3f5334e

Please sign in to comment.