-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy path.github-ci-stub.yml
More file actions
58 lines (57 loc) · 1.77 KB
/
.github-ci-stub.yml
File metadata and controls
58 lines (57 loc) · 1.77 KB
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
58
# OSpipe Cross-Platform Build Matrix
# Copy to .github/workflows/ospipe.yml to activate
name: OSpipe Build
on:
push:
paths: ['examples/OSpipe/**']
pull_request:
paths: ['examples/OSpipe/**']
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
target: aarch64-apple-darwin
name: macOS ARM64
- os: macos-13
target: x86_64-apple-darwin
name: macOS x64
- os: windows-latest
target: x86_64-pc-windows-msvc
name: Windows x64
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
name: Linux x64
- os: ubuntu-latest
target: wasm32-unknown-unknown
name: WASM
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build -p ospipe --target ${{ matrix.target }} --release
- name: Test
run: cargo test -p ospipe
if: matrix.target != 'wasm32-unknown-unknown'
- name: Upload artifact
uses: actions/upload-artifact@v4
if: matrix.target != 'wasm32-unknown-unknown'
with:
name: ospipe-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/libospipe*
target/${{ matrix.target }}/release/ospipe*
if-no-files-found: ignore
- name: Upload WASM artifact
uses: actions/upload-artifact@v4
if: matrix.target == 'wasm32-unknown-unknown'
with:
name: ospipe-wasm
path: target/wasm32-unknown-unknown/release/ospipe.wasm
if-no-files-found: ignore