mirror of
https://github.com/fluencelabs/sqlite
synced 2025-04-24 17:02:14 +00:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: Build sqlite artifact
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
description: "git ref"
|
|
type: string
|
|
default: master
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build sqlite.wasm"
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: fluencelabs/sqlite
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Setup wasi-sdk
|
|
run: |
|
|
curl -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-15/wasi-sdk-15.0-linux.tar.gz | tar xz -C ./
|
|
mv wasi-sdk-* wasi-sdk
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: dsherret/rust-toolchain-file@v1
|
|
|
|
- name: Setup marine
|
|
uses: fluencelabs/setup-marine@v1
|
|
with:
|
|
artifact-name: "marine"
|
|
|
|
- name: Build sqlite-wasm
|
|
run: make
|
|
|
|
- name: Upload sqlite-wasm
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: sqlite-wasm
|
|
path: sqlite3.wasm
|
|
if-no-files-found: error
|