-
-
Notifications
You must be signed in to change notification settings - Fork 18
55 lines (52 loc) · 1.28 KB
/
native.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
name: native
on:
push:
paths-ignore:
- 'img/**'
- 'doc/**'
- 'src/**'
- '*.md'
- '*.txt'
pull_request:
defaults:
run:
working-directory: lib/blake3_dotnet
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-11]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Linux
if: matrix.os == 'ubuntu-20.04'
run: |
chmod 755 *.sh
echo "building linux-x64"
./build-linux-x64.sh
echo "building linux-arm64"
sudo apt-get install gcc-aarch64-linux-gnu
./build-linux-arm64.sh
echo "building linux-arm"
sudo apt-get install gcc-arm-linux-gnueabihf
./build-linux-arm.sh
- name: Build macOS
if: matrix.os == 'macos-11'
run: |
chmod 755 *.sh
./build-osx-x64.sh
./build-osx-arm64.sh
- name: Build Windows
if: matrix.os == 'windows-latest'
run: |
./build-win-x64.ps1
./build-win-x86.ps1
./build-win-arm64.ps1
# ./build-win-arm.ps1
- name: Artifacts
uses: actions/upload-artifact@v3
with:
name: native-${{ matrix.os }}
path: lib/blake3_dotnet/build/