Skip to content

Commit 937d278

Browse files
Add smoke test workflow
1 parent 0c38382 commit 937d278

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
jobs:
7+
smoke-test:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install Swift toolchain
12+
run: |
13+
toolchain_path="/opt/swift"
14+
curl -L https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2024-09-25-a/swift-DEVELOPMENT-SNAPSHOT-2024-09-25-a-ubuntu22.04.tar.gz | tar xz --strip-component 1 -C "$toolchain_path"
15+
echo "export PATH=$toolchain_path/usr/bin:$PATH" >> $GITHUB_ENV
16+
- uses: bytecodealliance/actions/wasmtime/setup@v1
17+
- name: Build
18+
run: swift build -c release --triple wasm32-unknown-none-wasm -debug-info-format=none
19+
- name: Test
20+
run: wasmtime run .build/release/Examples.wasm
21+
- name: Update dlmalloc source
22+
run: ./Vendor/checkout-dependency && ./Utilities/update-sources.py
23+
- name: Check no uncommitted changes
24+
run: git diff --exit-code

0 commit comments

Comments
 (0)