summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml89
1 files changed, 71 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6fdac7a0..06482b37 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,11 +8,16 @@ on:
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
version-consistency:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Check version consistency
run: ./test/check-version-consistency.sh
@@ -20,7 +25,9 @@ jobs:
tcc:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -43,15 +50,17 @@ jobs:
zig:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
- name: Install Zig
- uses: mlugg/setup-zig@v2
+ uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
- version: 0.15.2
+ version: 0.16.0
- name: Autogen
run: ./autogen.sh -s
@@ -69,13 +78,17 @@ jobs:
zig build -Dtarget=x86_64-freebsd
zig build -Dtarget=aarch64-freebsd
zig build -Dtarget=wasm32-wasi
+ zig build -Dtarget=wasm32-freestanding
+ zig build -Dtarget=wasm32-freestanding -Dwasm_freestanding_libc=false
zig build -Doptimize=ReleaseFast
rm -fr zig-cache zig-out
regular:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -104,7 +117,9 @@ jobs:
check-globals:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -122,7 +137,9 @@ jobs:
other-comp:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -148,7 +165,9 @@ jobs:
other-arch:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -165,18 +184,44 @@ jobs:
make -j $(nproc)
make clean > /dev/null
+ mingw-clang:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: Update packages list
+ run: sudo apt-get update
+
+ - name: Install dependencies
+ run: sudo apt-get install -y build-essential libtool autoconf automake clang mingw-w64
+
+ - name: Autogen
+ run: ./autogen.sh -s
+
+ - name: MinGW cross-compilation with clang
+ run: |
+ for arch in i686 x86_64; do
+ env CC="clang --target=${arch}-w64-mingw32" CPPFLAGS="-DDEV_MODE=1" ./configure --disable-dependency-tracking --host=${arch}-w64-mingw32
+ make -j $(nproc)
+ make distclean > /dev/null
+ done
+
wasi:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Install Zig
- uses: mlugg/setup-zig@v2
+ uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
- version: master
+ version: 0.16.0
- name: Install Wasmer
- uses: wasmerio/setup-wasmer@v3.1
+ uses: wasmerio/setup-wasmer@24b15c95293d23f89c68bd40dac76338f773e924 # v3.1
- name: Build for wasi-core
run: zig build -Dtarget=wasm32-wasi -Doptimize=ReleaseSafe
@@ -188,7 +233,7 @@ jobs:
for wasm in *.wasm; do
name="${wasm%.wasm}"
echo "[$name]"
- if ! wasmer run "$wasm" --volume=./:. 2>&1; then
+ if ! wasmer run --volume="$(pwd):/" "$wasm" 2>&1; then
echo "*** [$name] FAILED" >&2
failed=1
fi
@@ -198,7 +243,9 @@ jobs:
aarch64-gcc:
runs-on: ubuntu-24.04-arm
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -219,7 +266,9 @@ jobs:
aarch64-gcc-crypto:
runs-on: ubuntu-24.04-arm
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -240,7 +289,9 @@ jobs:
aarch64-gcc-sha3:
runs-on: ubuntu-24.04-arm
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update
@@ -261,7 +312,9 @@ jobs:
android:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
- name: Update packages list
run: sudo apt-get update