chore: Use marine from e2e (#16)

* Use marine from e2e

* Add ref

* Fix
This commit is contained in:
Anatolios Laskaris 2023-03-22 14:28:54 +02:00 committed by GitHub
parent 46c8c1bb0e
commit ea4bac91b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View File

@ -2,6 +2,11 @@ name: Build sqlite artifact
on:
workflow_call:
inputs:
ref:
description: "git ref"
type: string
default: master
jobs:
build:
@ -12,6 +17,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: fluencelabs/sqlite
ref: ${{ inputs.ref }}
- name: Setup wasi-sdk
run: |
@ -21,10 +29,21 @@ jobs:
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup marine
uses: fluencelabs/setup-marine@v1
- name: Download marine artifact
id: marine
uses: actions/download-artifact@v3
continue-on-error: true
with:
version: 0.13.0
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: Build sqlite-wasm
run: make

View File

@ -16,6 +16,8 @@ jobs:
build:
name: "sqlite"
uses: ./.github/workflows/build.yml
with:
ref: ${{ github.ref }}
snapshot:
needs: build

View File

@ -38,6 +38,8 @@ jobs:
if: needs.release-please.outputs.release-created
needs: release-please
uses: ./.github/workflows/build.yml
with:
ref: ${{ github.ref }}
publish:
runs-on: ubuntu-latest