Skip to content

Commit

Permalink
wip: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
adamws committed Oct 27, 2024
1 parent 9d05abf commit ba5868a
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- uses: actions/download-artifact@v4
with:
version: latest
name: klawa
path: zig-out/bin
- name: Install dependencies
shell: bash
run: |
sudo apt-get install libgl-dev libxi-dev \
libx11-dev xserver-xorg-dev xorg-dev \
ffmpeg xdotool xvfb \
libc6-dbg util-linux gdb \
libxi6
- name: Set cores to get stored in /cores
run: |
sudo mkdir /cores
sudo chmod 777 /cores
sudo bash -c 'echo "/cores/%e.%p.%t.core" > /proc/sys/kernel/core_pattern'
- run: |
zig build
sudo apt-get install ffmpeg xdotool xvfb
- name: Run tests
shell: bash
run: |
ulimit -c unlimited
cd tests && ./test.sh
tree
- name: Show core dump
if: failure()
shell: bash
run: |
core=$(find /cores -type f -name *.core)
printf "bt\nquit\n" >> file.txt
gdb --command=file.txt ./zig-out/bin/klawa $core
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit ba5868a

Please sign in to comment.