Add WASI to CI builds (#1113)

This commit is contained in:
Auguste Rame 2023-04-04 16:23:33 -04:00 committed by GitHub
parent ace6d7f32b
commit 0f85c49e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ jobs:
- name: Build artifacts - name: Build artifacts
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }} if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
run: | run: |
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "x86-windows" "x86-linux" "aarch64-linux" "aarch64-macos") declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "x86-windows" "x86-linux" "aarch64-linux" "aarch64-macos" "wasm32-wasi")
mkdir -p "artifacts/" mkdir -p "artifacts/"
for target in "${targets[@]}"; do for target in "${targets[@]}"; do
@ -114,6 +114,13 @@ jobs:
name: zls-aarch64-macos name: zls-aarch64-macos
path: artifacts/aarch64-macos/ path: artifacts/aarch64-macos/
- name: Upload wasm32-wasi artifact
if: ${{ matrix.os == 'ubuntu-latest' && github.event.inputs.bypass_tracy_and_artifacts != 'true' }}
uses: actions/upload-artifact@v3
with:
name: zls-wasm32-wasi
path: artifacts/wasm32-wasi/
- name: Beam to Felix - name: Beam to Felix
if: ${{ matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master' && github.repository_owner == 'zigtools' }} if: ${{ matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/master' && github.repository_owner == 'zigtools' }}
uses: easingthemes/ssh-deploy@v2.1.1 uses: easingthemes/ssh-deploy@v2.1.1