CI: restore cache + free some disk space (#6068) #2713
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Builds | |
| env: | |
| RUST_BACKTRACE: 1 | |
| CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git | |
| MSRV: "1.90" | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| tags: | |
| # this is _not_ a regex, see: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet | |
| - "[0-9]+.[0-9]+.[0-9]+*" | |
| pull_request: | |
| branches: | |
| - "main" | |
| workflow_dispatch: | |
| inputs: | |
| release: | |
| description: "Make release" | |
| jobs: | |
| setup: | |
| name: Set up | |
| runs-on: ubuntu-latest | |
| outputs: | |
| VERSION: ${{ steps.setup.outputs.VERSION }} | |
| DOING_RELEASE: ${{ steps.setup.outputs.DOING_RELEASE }} | |
| steps: | |
| - name: Set up env vars | |
| id: setup | |
| shell: bash | |
| run: | | |
| VERSION=${GITHUB_REF/refs\/tags\//} | |
| echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT | |
| DOING_RELEASE=$(echo $VERSION | grep -c '^[0-9]\+\.[0-9]\+\.[0-9]\+\(-\([a-zA-Z]\+\)\?[0-9]*\)\?$' || true) | |
| echo "DOING_RELEASE=${DOING_RELEASE}" >> $GITHUB_OUTPUT | |
| echo $VERSION | |
| echo $DOING_RELEASE | |
| build: | |
| name: ${{ matrix.build }} | |
| if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-') | |
| runs-on: ${{ matrix.os }} | |
| needs: setup | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - build: linux-arm64 | |
| os: ubuntu-22.04-arm | |
| artifact_name: "wasmer-linux-aarch64" | |
| llvm_url: "https://github.com/wasmerio/llvm-custom-builds/releases/download/21.x/llvm-linux-aarch64.tar.xz" | |
| cross_compilation_artifact_name: "cross_compiled_from_linux" | |
| build_wasm: true | |
| enable_llvm: true | |
| enable_v8: false | |
| enable_wasmi: true | |
| enable_wamr: true | |
| - build: linux-x64 | |
| os: ubuntu-22.04 | |
| artifact_name: "wasmer-linux-amd64" | |
| llvm_url: "https://github.com/wasmerio/llvm-custom-builds/releases/download/21.x/llvm-linux-amd64.tar.xz" | |
| cross_compilation_artifact_name: "cross_compiled_from_linux" | |
| build_wasm: true | |
| enable_llvm: true | |
| enable_v8: true | |
| enable_wasmi: true | |
| enable_wamr: true | |
| - build: macos-x64 | |
| os: macos-15-intel | |
| llvm_url: "https://github.com/wasmerio/llvm-custom-builds/releases/download/21.x/llvm-darwin-amd64.tar.xz" | |
| artifact_name: "wasmer-darwin-amd64" | |
| cross_compilation_artifact_name: "cross_compiled_from_mac" | |
| build_wasm: false | |
| enable_llvm: true | |
| enable_v8: true | |
| enable_wasmi: true | |
| enable_wamr: true | |
| - build: macos-arm64 | |
| os: depot-macos-14 | |
| target: aarch64-apple-darwin | |
| artifact_name: "wasmer-darwin-arm64" | |
| build_wasm: false | |
| llvm_url: "https://github.com/wasmerio/llvm-custom-builds/releases/download/21.x/llvm-darwin-aarch64.tar.xz" | |
| enable_llvm: true | |
| enable_v8: true | |
| enable_wasmi: true | |
| enable_wamr: true | |
| - build: windows-x64 | |
| os: windows-2022 | |
| artifact_name: "wasmer-windows-amd64" | |
| llvm_url: "https://github.com/wasmerio/llvm-custom-builds/releases/download/21.x/llvm-windows-amd64.tar.xz" | |
| cross_compilation_artifact_name: "cross_compiled_from_win" | |
| build_wasm: false | |
| enable_llvm: true | |
| enable_v8: false | |
| enable_wasmi: true | |
| enable_wamr: false | |
| #- build: linux-musl-x64 | |
| # os: ubuntu-22.04 | |
| # artifact_name: 'wasmer-linux-musl-amd64' | |
| # container: alpine:latest | |
| # build_wasm: true | |
| # enable_llvm: false | |
| # enable_v8: true | |
| # enable_wasmi: true | |
| # enable_wamr: false | |
| env: | |
| TARGET: ${{ matrix.target }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up base deps on musl | |
| if: startsWith(matrix.build, 'linux-musl-x64') | |
| run: | | |
| apk add bash mold make curl cmake ninja clang21 zstd-static llvm21-dev clang21-static llvm21-static ncurses-static zlib-static libxml2-dev libxml2-static xz-dev xz-static xz-libs libc++-dev libc++-static | |
| ln -s /usr/bin/clang-21 /usr/bin/clang | |
| - name: Install Linux tools | |
| if: startsWith(matrix.build, 'linux-x64') | |
| run: | | |
| sudo apt install mold ninja-build | |
| - name: Install Linux ARM tools | |
| if: startsWith(matrix.build, 'linux-arm64') | |
| run: | | |
| sudo apt install mold ninja-build cmake make libzstd1 zstd libzstd-dev | |
| - name: Install `ninja` on macOS | |
| if: startsWith(matrix.build, 'macos-') | |
| shell: bash | |
| run: | | |
| brew install ninja gcc | |
| - name: Install `ninja` on Windows | |
| if: startsWith(matrix.build, 'windows-') | |
| shell: bash | |
| run: | | |
| choco install ninja | |
| - name: Delete unwanted link to stop it from interfering (Windows) | |
| if: startsWith(matrix.build, 'windows-') | |
| shell: bash | |
| run: rm /usr/bin/link.exe | |
| - name: Install standard header files on macOS | |
| if: startsWith(matrix.build, 'macos-') | |
| shell: bash | |
| run: | | |
| sudo xcode-select -s /Library/Developer/CommandLineTools | |
| echo "CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include" >> $GITHUB_ENV | |
| - name: Install MSVC dev-cmd (Windows) | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| if: startsWith(matrix.build, 'windows-') | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ env.MSRV }} | |
| target: ${{ matrix.target }} | |
| - name: Install LLVM (macOS Intel) | |
| if: matrix.os == 'macos-15-intel' && !matrix.llvm_url | |
| run: | | |
| brew install llvm | |
| - name: Install LLVM | |
| if: ${{ matrix.llvm_url && matrix.enable_llvm == true }} | |
| shell: bash | |
| run: | | |
| LLVM_DIR=$(pwd)/${{ env.LLVM_DIR }} | |
| mkdir -p ${LLVM_DIR} | |
| curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --retry 3 --proto '=https' --tlsv1.2 -sSf "${{ matrix.llvm_url }}" -L -o - | tar xJv -C ${LLVM_DIR} | |
| echo "${LLVM_DIR}/bin" >> $GITHUB_PATH | |
| env: | |
| LLVM_DIR: .llvm | |
| - name: Configure LLVM (Windows) | |
| # The Custom Windows build does not contains llvm-config.exe, so need to setup manualy here | |
| if: startsWith(matrix.build, 'windows-x64') && matrix.llvm_url | |
| shell: bash | |
| run: | | |
| LLVM_DIR=$(pwd)/${{ env.LLVM_DIR }} | |
| echo LLVM_SYS_211_PREFIX="${LLVM_DIR}" >> $GITHUB_ENV | |
| echo LLVM_ENABLE=1 >> $GITHUB_ENV | |
| env: | |
| LLVM_DIR: .llvm | |
| - name: Add `brew` libraries (Apple Silicon) | |
| run: | | |
| echo "RUSTFLAGS=-L/opt/homebrew/lib" >> $GITHUB_ENV | |
| if: matrix.os == 'macos-14' || matrix.os == 'depot-macos-14' | |
| - name: Set up dependencies for Mac OS | |
| run: | | |
| brew install automake | |
| # using gnu-tar is a workaround for https://github.com/actions/cache/issues/403 | |
| brew install gnu-tar | |
| echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV | |
| if: startsWith(matrix.os, 'macos') | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ matrix.build }}-${{ matrix.target }}-cargo-${{ hashFiles('Cargo.lock') }}-v1 | |
| - name: Setup Rust target | |
| run: | | |
| mkdir -p .cargo | |
| cat << EOF > .cargo/config.toml | |
| [build] | |
| target = "${{ matrix.target }}" | |
| EOF | |
| if: matrix.target | |
| - name: Build C API headless | |
| shell: bash | |
| run: | | |
| LLVM_CONFIG_PATH=/usr/bin/llvm-config-21 make package-capi-headless | |
| - name: Build C API | |
| shell: bash | |
| run: | | |
| LLVM_CONFIG_PATH=/usr/bin/llvm-config-21 make build-capi | |
| - name: Build Wasmer binary | |
| if: ${{ !startsWith(matrix.build, 'linux-x64') && !startsWith(matrix.build, 'linux-musl') }} | |
| shell: bash | |
| run: | | |
| make build-wasmer | |
| env: | |
| ENABLE_LLVM: ${{ matrix.enable_llvm }} | |
| ENABLE_V8: ${{ matrix.enable_v8 }} | |
| ENABLE_WASMI: ${{ matrix.enable_wasmi }} | |
| ENABLE_WAMR: ${{ matrix.enable_wamr }} | |
| - name: Build Wasmer on linux-x64 | |
| if: ${{ startsWith(matrix.build, 'linux-x64') }} | |
| run: | | |
| RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=mold" make build-wasmer | |
| env: | |
| ENABLE_LLVM: ${{ matrix.enable_llvm }} | |
| ENABLE_V8: ${{ matrix.enable_v8 }} | |
| ENABLE_WASMI: ${{ matrix.enable_wasmi }} | |
| ENABLE_WAMR: ${{ matrix.enable_wamr }} | |
| - name: Build Wasmer on linux-musl | |
| if: ${{ startsWith(matrix.build, 'linux-musl') }} | |
| run: | | |
| echo "#!/bin/bash" >> /usr/bin/llvm-config | |
| echo 'if [ "$1" = "--libs" ]; then' >> /usr/bin/llvm-config | |
| echo 'llvm-config-21 "$@" "--link-static"' >> /usr/bin/llvm-config | |
| echo "else" >> /usr/bin/llvm-config | |
| echo 'llvm-config-21 "$@"' >> /usr/bin/llvm-config | |
| echo 'fi' >> /usr/bin/llvm-config | |
| cat /usr/bin/llvm-config | |
| chmod +x /usr/bin/llvm-config | |
| LLVM_CONFIG_PATH=/usr/bin/llvm-config RUSTFLAGS="-L/usr/lib64 -L/usr/lib -C linker=clang -C link-arg=-fuse-ld=mold -lzstd" make build-wasmer | |
| env: | |
| ENABLE_LLVM: ${{ matrix.enable_llvm }} | |
| ENABLE_V8: ${{ matrix.enable_v8 }} | |
| ENABLE_WASMI: ${{ matrix.enable_wasmi }} | |
| ENABLE_WAMR: ${{ matrix.enable_wamr }} | |
| #- name: Build Wasmer binary on Wasm32-WASI without LLVM | |
| # if: matrix.build_wasm | |
| # shell: bash | |
| # run: | | |
| # make build-wasmer-wasm | |
| - name: Install Nightly Rust for Headless | |
| if: ${{ !startsWith(matrix.build, 'linux-musl-x64') }} | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "nightly-2024-11-07" | |
| target: ${{ matrix.target }} | |
| components: "rust-src" | |
| - name: Build Minimal Wasmer Headless | |
| if: ${{ !startsWith(matrix.build, 'linux-musl-x64') }} | |
| run: | | |
| echo "" >> Cargo.toml | |
| echo "[profile.release]" >> Cargo.toml | |
| echo "opt-level = 'z'" >> Cargo.toml | |
| echo "debug = false" >> Cargo.toml | |
| echo "debug-assertions = false" >> Cargo.toml | |
| echo "overflow-checks = false" >> Cargo.toml | |
| echo "lto = true" >> Cargo.toml | |
| echo "panic = 'abort'" >> Cargo.toml | |
| echo "incremental = false" >> Cargo.toml | |
| echo "codegen-units = 1" >> Cargo.toml | |
| echo "rpath = false" >> Cargo.toml | |
| make build-wasmer-headless-minimal | |
| - name: Dist | |
| run: | | |
| make distribution | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact_name }} | |
| path: dist | |
| if-no-files-found: error | |
| retention-days: 2 | |
| windows_gnu: | |
| name: windows-gnu | |
| if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Windows-GNU linker | |
| shell: bash | |
| run: | | |
| sudo apt install -y mingw-w64 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| target: x86_64-pc-windows-gnu | |
| - name: Install Windows-GNU target | |
| shell: bash | |
| run: | | |
| rustup target add x86_64-pc-windows-gnu | |
| - name: Install Windows 10 SDK with xwin | |
| shell: bash | |
| run: | | |
| mkdir -p /tmp/xwin | |
| mkdir -p /tmp/xwindownload | |
| mkdir -p /tmp/xwincache | |
| git clone https://github.com/wasmerio/xwin --depth=1 /tmp/xwin | |
| cargo build --release --manifest-path=/tmp/xwin/Cargo.toml | |
| /tmp/xwin/target/release/xwin --accept-license --cache-dir /tmp/xwincache splat --output /tmp/xwindownload | |
| mkdir -p /tmp/winsdk | |
| SDK_VERSION=$(ls /tmp/xwindownload/sdk/lib | head -n 1) | |
| cp /tmp/xwindownload/sdk/lib/$SDK_VERSION/um/x86_64/WS2_32.lib /tmp/winsdk/ | |
| cp /tmp/xwindownload/sdk/lib/$SDK_VERSION/um/x86_64/KERNEL32.lib /tmp/winsdk/ | |
| cp /tmp/xwindownload/sdk/lib/$SDK_VERSION/um/x86_64/BCRYPT.lib /tmp/winsdk/ | |
| cp /tmp/xwindownload/sdk/lib/$SDK_VERSION/um/x86_64/ADVAPI32.lib /tmp/winsdk/ | |
| cp /tmp/xwindownload/sdk/lib/$SDK_VERSION/um/x86_64/USERENV.lib /tmp/winsdk/ | |
| echo "WinSDK files:" | |
| ls -laH /tmp/winsdk | |
| echo "" | |
| mkdir -p package | |
| mkdir -p package/winsdk | |
| cp -r /tmp/winsdk/* package/winsdk | |
| - name: Build Wasmer C-API without LLVM | |
| shell: bash | |
| run: | | |
| make build-capi | |
| env: | |
| RUSTFLAGS: -Cpanic=abort | |
| CARGO_TARGET: x86_64-pc-windows-gnu | |
| ENABLE_LLVM: 0 | |
| - name: Build Wasmer C-API headless without LLVM | |
| shell: bash | |
| run: | | |
| make build-capi-headless | |
| env: | |
| RUSTFLAGS: -Cpanic=abort | |
| CARGO_TARGET: x86_64-pc-windows-gnu | |
| ENABLE_LLVM: 0 | |
| - name: Dist | |
| run: | | |
| make distribution-gnu | |
| env: | |
| CARGO_TARGET: x86_64-pc-windows-gnu | |
| TARGET_DIR: target/x86_64-pc-windows-gnu/release | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "wasmer-windows-gnu64" | |
| path: dist | |
| if-no-files-found: error | |
| retention-days: 2 | |
| darwin_aarch64_jsc: | |
| name: JSC - macos-aarch64 | |
| if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-') | |
| runs-on: depot-macos-14 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| target: aarch64-apple-darwin | |
| - name: Install Darwin-aarch64 target | |
| shell: bash | |
| run: | | |
| rustup target add aarch64-apple-darwin | |
| - name: Build Wasmer C-API (JSC) | |
| shell: bash | |
| run: | | |
| make build-capi-jsc | |
| env: | |
| RUSTFLAGS: -Cpanic=abort | |
| CARGO_TARGET: aarch64-apple-darwin | |
| - name: Dist | |
| run: | | |
| make distribution | |
| env: | |
| CARGO_TARGET: aarch64-apple-darwin | |
| TARGET_DIR: target/aarch64-apple-darwin/release | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "aarch64-apple-darwin-jsc" | |
| path: dist | |
| if-no-files-found: error | |
| retention-days: 2 | |
| darwin_x86_64_jsc: | |
| name: JSC - macos-x86_64 | |
| if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-') | |
| runs-on: macos-15-intel | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| target: x86_64-apple-darwin | |
| - name: Build Wasmer C-API (JSC) | |
| shell: bash | |
| run: | | |
| make build-capi-jsc | |
| env: | |
| RUSTFLAGS: -Cpanic=abort | |
| CARGO_TARGET: x86_64-apple-darwin | |
| - name: Dist | |
| run: | | |
| make distribution | |
| env: | |
| CARGO_TARGET: x86_64-apple-darwin | |
| TARGET_DIR: target/x86_64-apple-darwin/release | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "x86_64-apple-darwin-jsc" | |
| path: dist | |
| if-no-files-found: error | |
| retention-days: 2 | |
| linux_riscv64: | |
| name: linux-riscv64 | |
| if: github.event_name != 'pull_request' || startsWith(github.head_ref, 'release-') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| target: riscv64gc-unknown-linux-gnu | |
| - name: Build cross image | |
| run: | | |
| docker build -t wasmer/riscv64 ${GITHUB_WORKSPACE}/.github/cross-linux-riscv64/ | |
| env: | |
| CROSS_DOCKER_IN_DOCKER: true | |
| - name: "Run wast test suite for all compilers" | |
| run: test-stage-0-wast | |
| env: | |
| CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo | |
| CROSS_DOCKER_IN_DOCKER: true | |
| CARGO_TARGET: riscv64gc-unknown-linux-gnu | |
| PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig | |
| PKG_CONFIG_ALLOW_CROSS: true | |
| ENABLE_LLVM: 0 | |
| - name: Build Wasmer binary | |
| run: | | |
| make build-wasmer | |
| env: | |
| CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo | |
| CROSS_DOCKER_IN_DOCKER: true | |
| CARGO_TARGET: riscv64gc-unknown-linux-gnu | |
| PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig | |
| PKG_CONFIG_ALLOW_CROSS: true | |
| ENABLE_LLVM: 0 | |
| - name: Build C API headless | |
| shell: bash | |
| run: | | |
| make package-capi-headless | |
| env: | |
| CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo | |
| CROSS_DOCKER_IN_DOCKER: true | |
| CARGO_TARGET: riscv64gc-unknown-linux-gnu | |
| PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig | |
| PKG_CONFIG_ALLOW_CROSS: true | |
| ENABLE_LLVM: 0 | |
| TARGET: riscv64gc-unknown-linux-gnu | |
| TARGET_DIR: target/riscv64gc-unknown-linux-gnu/release | |
| - name: Build C API | |
| run: | | |
| make build-capi | |
| env: | |
| CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo | |
| CROSS_DOCKER_IN_DOCKER: true | |
| CARGO_TARGET: riscv64gc-unknown-linux-gnu | |
| PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig | |
| PKG_CONFIG_ALLOW_CROSS: true | |
| ENABLE_LLVM: 0 | |
| - name: Dist | |
| run: | | |
| make distribution | |
| env: | |
| CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project wasmer/riscv64:latest cargo | |
| CROSS_DOCKER_IN_DOCKER: true | |
| CARGO_TARGET: riscv64gc-unknown-linux-gnu | |
| PKG_CONFIG_PATH: /usr/lib/riscv64-linux-gnu/pkgconfig | |
| PKG_CONFIG_ALLOW_CROSS: true | |
| TARGET: riscv64gc-unknown-linux-gnu | |
| TARGET_DIR: target/riscv64gc-unknown-linux-gnu/release | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wasmer-linux-riscv64 | |
| path: dist | |
| if-no-files-found: error | |
| retention-days: 2 | |
| release: | |
| needs: [setup, build, windows_gnu, linux_riscv64] | |
| runs-on: ubuntu-latest | |
| if: (needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != '') && github.event_name != 'pull_request' | |
| steps: | |
| - name: Download the Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ needs.setup.outputs.VERSION }} | |
| release_name: Release ${{ needs.setup.outputs.VERSION }} | |
| draft: true | |
| prerelease: false | |
| - name: Upload Release Asset Windows Installer | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-windows-amd64/WasmerInstaller.exe | |
| asset_name: wasmer-windows.exe | |
| asset_content_type: application/vnd.microsoft.portable-executable | |
| - name: Upload Release Asset Windows | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-windows-amd64/wasmer.tar.gz | |
| asset_name: wasmer-windows-amd64.tar.gz | |
| asset_content_type: application/gzip | |
| - name: Upload Release Asset Linux amd64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-linux-amd64/wasmer.tar.gz | |
| asset_name: wasmer-linux-amd64.tar.gz | |
| asset_content_type: application/gzip | |
| - name: Upload Release Asset Linux aarch64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-linux-aarch64/wasmer.tar.gz | |
| asset_name: wasmer-linux-aarch64.tar.gz | |
| asset_content_type: application/gzip | |
| - name: Upload Release Asset Linux riscv64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-linux-riscv64/wasmer.tar.gz | |
| asset_name: wasmer-linux-riscv64.tar.gz | |
| asset_content_type: application/gzip | |
| - name: Upload Release Asset Windows gnu64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-windows-gnu64/wasmer.tar.gz | |
| asset_name: wasmer-windows-gnu64.tar.gz | |
| asset_content_type: application/gzip | |
| #- name: Upload Release Asset Linux amd64 (musl) | |
| # id: upload-release-asset-linux-musl-amd64 | |
| # uses: actions/upload-release-asset@v1 | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # with: | |
| # upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| # asset_path: artifacts/wasmer-linux-musl-amd64/wasmer.tar.gz | |
| # asset_name: wasmer-linux-musl-amd64.tar.gz | |
| # asset_content_type: application/gzip | |
| - name: Upload Release Asset Mac amd64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-darwin-amd64/wasmer.tar.gz | |
| asset_name: wasmer-darwin-amd64.tar.gz | |
| asset_content_type: application/gzip | |
| - name: Upload Release Asset Mac arm64 | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: artifacts/wasmer-darwin-arm64/wasmer.tar.gz | |
| asset_name: wasmer-darwin-arm64.tar.gz | |
| asset_content_type: application/gzip |