Skip to content

Build WIP

Build WIP #173

Workflow file for this run

name: cross-build
on:
push:
branches:
- improve-and-fix-workflow
# pull_request:
# types: [closed]
# branches:
# - main
jobs:
wait-for-other-workflow:
name: Wait for Other Workflow
runs-on: ubuntu-latest
steps:
- name: Wait for Other Workflow to Complete
run: "echo 'Waiting for other workflow to complete...'"
build:
# if: github.event.pull_request.merged == true
name: build for ${{ matrix.os }}
strategy:
matrix:
os:
- name: ubuntu
lib: libsurrealdb_c.so
- name: macos
lib: libsurrealdb_c.dylib
- name: windows
lib: surrealdb_c.dll
runs-on: ${{ format('{0}-latest', matrix.os.name) }}
steps:
- name: Checkout Surreal C lib
uses: actions/checkout@v3
with:
repository: https://github.com/surrealdb/surrealdb.c
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build Rust library
run: cargo build --release
- name: Archive library
run: |
mkdir -p dist/${{ matrix.os.name }}
cp target/release/${{ matrix.os.lib }} dist/${{ matrix.os.name }}/${{ matrix.os.lib }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os.name }}-build
path: dist/${{ matrix.os.name }}