diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d309ad9..0ac2c37 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -45,19 +45,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - uses: mlugg/setup-zig@v1 with: - name: klawa - path: zig-out/bin + version: latest - name: Install dependencies shell: bash run: | - sudo apt-get install ffmpeg xdotool xvfb \ - libc6-dbg + sudo apt-get install libgl-dev libxi-dev \ + libx11-dev xserver-xorg-dev xorg-dev \ + ffmpeg xdotool xvfb \ + libc6-dbg util-linux + - run: | + lscpu + zig build -Dcpu=x86_64 -Dtarget=x86_64-native --verbose - name: Run tests shell: bash run: | - chmod +x zig-out/bin/klawa ldd zig-out/bin/klawa cd tests && ./test.sh - uses: actions/upload-artifact@v4