From 635f458f528f9c01b0518c64766d2f0e7e2bb837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=BCtt?= Date: Thu, 28 Jul 2022 10:42:46 +0200 Subject: [PATCH] Add cloudcompiler.yaml --- .github/workflows/cloudcompiler.yaml | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/cloudcompiler.yaml diff --git a/.github/workflows/cloudcompiler.yaml b/.github/workflows/cloudcompiler.yaml new file mode 100644 index 00000000000..81e405753dc --- /dev/null +++ b/.github/workflows/cloudcompiler.yaml @@ -0,0 +1,49 @@ +name: Release cloudcompiler.wasm + +env: + RUST_BACKTRACE: 1 + +on: + workflow_dispatch: + +jobs: + setup: + name: Set up + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + toolchain: 1.59 + target: ${{ matrix.target }} + - name: Install wasm32-wasi target + shell: bash + run: | + rustup target add wasm32-wasi + - name: Build cloudcompiler.wasm + shell: bash + run: | + cargo build --release --target wasm32-wasi && + mkdir target/release/cloudcompiler && + cp target/release/wasmer.wasm target/release/cloudcompiler/cloudcompiler.wasm && + cat << EOF > target/release/cloudcompiler/wapm.toml + [package] + name = "${{ secrets.WAPM_DEV_USERNAME }}/cloudcompiler" + version = "$(git tag | tail -n1)" + description = "cloudcompiler.wasm" + license = "MIT" + repository = "https://github.com/wasmerio/wasmer" + + [[module]] + name = "cloudcompiler" + source = "cloudcompiler.wasm" + abi = "wasi" + + [module.interfaces] + wasi = "0.1.0-unstable" + + [[command]] + name = "cloudcompiler" + module = "cloudcompiler" + EOF \ No newline at end of file