-
Notifications
You must be signed in to change notification settings - Fork 60
57 lines (50 loc) · 1.53 KB
/
cross_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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 C release for ${{ matrix.os.name }}
# 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: 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 }}