GitHub CI: check compilation with zig cc
This commit is contained in:
parent
f1da14de2b
commit
d5566cb08e
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@ -18,7 +18,8 @@ jobs:
|
|||||||
run: sudo apt-get update
|
run: sudo apt-get update
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get install -y build-essential libtool autoconf automake tcc
|
run: |
|
||||||
|
sudo apt-get install -y build-essential libtool autoconf automake tcc
|
||||||
|
|
||||||
- name: Autogen
|
- name: Autogen
|
||||||
run: ./autogen.sh -s
|
run: ./autogen.sh -s
|
||||||
@ -31,6 +32,36 @@ jobs:
|
|||||||
make uninstall
|
make uninstall
|
||||||
make distclean
|
make distclean
|
||||||
|
|
||||||
|
zig:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Update packages list
|
||||||
|
run: sudo apt-get update
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
curl -sL -o - https://ziglang.org/download/0.10.0/zig-linux-x86_64-0.10.0.tar.xz | tar xJ -f - -C /opt/
|
||||||
|
sudo mv /opt/zig-* /opt/zig
|
||||||
|
|
||||||
|
- name: Autogen
|
||||||
|
run: ./autogen.sh -s
|
||||||
|
|
||||||
|
- name: Compilation with zig
|
||||||
|
run: |
|
||||||
|
export PATH=/opt/zig/bin:/opt/zig:$PATH
|
||||||
|
zig build
|
||||||
|
zig build -Dtarget=x86_64-linux
|
||||||
|
zig build -Dtarget=aarch64-linux
|
||||||
|
zig build -Dtarget=x86_64-windows
|
||||||
|
zig build -Dtarget=aarch64-windows
|
||||||
|
zig build -Dtarget=x86_64-macos
|
||||||
|
zig build -Dtarget=aarch64-macos
|
||||||
|
zig build -Dtarget=wasm32-wasi
|
||||||
|
zig build -Drelease-fast
|
||||||
|
rm -fr zig-cache zig-out
|
||||||
|
|
||||||
regular:
|
regular:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user