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

View File

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

View File

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