From 789b7124e3d29c3cb023f02e9099f23f415d53fd Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Thu, 26 Jan 2023 20:34:00 +0200 Subject: [PATCH] chore: Fix release (#53) --- .github/workflows/release.yml | 59 ++++++----------------------------- rust-toolchain.toml | 2 +- 2 files changed, 11 insertions(+), 50 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09ea071..1381903 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,69 +9,30 @@ jobs: release: name: "Publish" runs-on: builder - defaults: - run: - shell: bash steps: ### Setup - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - run: mkdir -p ~/.bin - - run: echo "~/.bin" >> $GITHUB_PATH - - - name: Download jq - run: | - curl -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 -o ~/.bin/jq - chmod +x ~/.bin/jq - - - name: Download marine - run: bash $GITHUB_WORKSPACE/.github/download_marine.sh - - - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '11' - - - name: Cache npm - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-v03-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-v03- - - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "15" registry-url: "https://registry.npmjs.org" + cache: npm + cache-dependency-path: "aqua/package-lock.json" - - name: Cache cargo - uses: actions/cache@v2 + - name: Setup Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + + - name: Install Marine + uses: baptiste0928/cargo-install@v1.3.0 with: - path: | - ~/.cargo/registry - ~/.cargo/git - ~/.cargo/bin - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + crate: marine - - name: Install toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - target: wasm32-wasi - - # - name: Install wasm32-wasi target - # working-directory: ./service - # run: rustup target add wasm32-wasi - -### Build - name: Build trust-graph working-directory: ./service run: ./build.sh diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bbda0d0..b0b7302 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] channel = "nightly-2022-08-30" -targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu" ] \ No newline at end of file +targets = [ "x86_64-apple-darwin", "wasm32-wasi", "wasm32-unknown-unknown", "x86_64-unknown-linux-gnu" ]