-
-
Notifications
You must be signed in to change notification settings - Fork 33
40 lines (38 loc) · 1.52 KB
/
build.yaml
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
on: [ push, pull_request ]
name: CI
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- name: Build for Windows/Linux
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest'
run: cargo build --verbose --release
- name: Build for macOS
if: matrix.os == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin x86_64-apple-darwin
cargo build --verbose --release --target aarch64-apple-darwin
cargo build --verbose --release --target x86_64-apple-darwin
lipo -create -output target/libv8_killer_core.dylib \
target/aarch64-apple-darwin/release/libv8_killer_core.dylib \
target/x86_64-apple-darwin/release/libv8_killer_core.dylib
lipo -create -output target/v8_killer_launcher \
target/aarch64-apple-darwin/release/v8_killer_launcher \
target/x86_64-apple-darwin/release/v8_killer_launcher
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-release
path: |
target/release/v8_killer_core.dll
target/release/v8_killer_launcher.exe
target/release/libv8_killer_core.so
target/release/libv8_killer_launcher.so
target/release/v8_killer_launcher
target/libv8_killer_core.dylib
target/v8_killer_launcher