-
Notifications
You must be signed in to change notification settings - Fork 23
81 lines (72 loc) · 1.89 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI/CD
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
build_mac:
name: Build on macOS
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Build
run: |
rustup target add aarch64-apple-darwin
cargo build --verbose --release
cargo build --verbose --release --target aarch64-apple-darwin
lipo -create \
./target/aarch64-apple-darwin/release/ifrextractor \
./target/release/ifrextractor \
-output ./ifrextractor
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: macOS build (universal)
path: ifrextractor
build_freebsd:
name: Build on FreeBSD
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Build on FreeBSD inside macOS VM
id: test
uses: vmactions/freebsd-vm@v0
with:
usesh: true
prepare: |
pkg install -y rust
run: |
cargo build --verbose --release
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: FreeBSD build
path: target/release/ifrextractor
build_linux:
name: Build on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Linux build
path: target/release/ifrextractor
build_windows:
name: Build on Windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose --release
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Windows build
path: target/release/ifrextractor.exe