diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 4a62c42..c9842f1 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -48,12 +48,25 @@ jobs: - name: Setup Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Download marine artifact + id: marine + uses: actions/download-artifact@v3 + continue-on-error: true + with: + name: marine + path: ~/.local/bin + + - name: Make marine executable + if: steps.marine.outcome == 'success' + run: chmod +x ~/.local/bin/marine + - name: Setup marine + if: steps.marine.outcome == 'failure' uses: fluencelabs/setup-marine@v1 - name: Download sqlite-wasm - continue-on-error: true uses: actions/download-artifact@v3 + continue-on-error: true with: name: sqlite-wasm path: artifacts/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b526f1..692c472 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,4 @@ name: Run tests - on: workflow_call: inputs: @@ -24,14 +23,25 @@ jobs: - name: Setup Rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: Install marine - uses: baptiste0928/cargo-install@v1.3.0 + - name: Download marine artifact + id: marine + uses: actions/download-artifact@v3 + continue-on-error: true with: - crate: marine + name: marine + path: ~/.local/bin + + - name: Make marine executable + if: steps.marine.outcome == 'success' + run: chmod +x ~/.local/bin/marine + + - name: Setup marine + if: steps.marine.outcome == 'failure' + uses: fluencelabs/setup-marine@v1 - name: Download sqlite-wasm - continue-on-error: true uses: actions/download-artifact@v3 + continue-on-error: true with: name: sqlite-wasm path: artifacts/