-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (47 loc) · 1.45 KB
/
development.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
name: Development
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# The targets should match the platforms on the package's Yggdrasil build recipe:
# https://github.com/JuliaPackaging/Yggdrasil/blob/e8a9f04d70652738c682407b9799ada044d24614/O/object_store_ffi/build_tarballs.jl#L20
# 64-bit (x86)
- build: linux-64-bit
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
prebuild: "true"
command: cross
- build: macos-64-bit
os: macos-latest
target: x86_64-apple-darwin
prebuild: "true"
command: cargo
# 64-bit (ARM)
- build: linux-arm
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
prebuild: "true"
command: cross
- build: macos-arm
os: macos-latest
target: aarch64-apple-darwin
prebuild: "true"
command: cargo
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
targets: ${{ matrix.target }}
- run: cargo install cross --git https://github.com/cross-rs/cross
- run: ${{ matrix.prebuild }}
- run: ${{ matrix.command }} build --release --target ${{ matrix.target }}