-
-
Notifications
You must be signed in to change notification settings - Fork 421
91 lines (84 loc) · 2.58 KB
/
wgpu.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
82
83
84
85
86
87
88
89
90
name: WGPU
on:
push:
branches-ignore:
- "ci/*"
- "develop/*"
- "main"
paths:
- build/submodules/wgpu-native
- build/nuke/Native/Core.cs
- build/nuke/Native/Wgpu.cs
- .github/workflows/wgpu.yml
jobs:
Build:
strategy:
fail-fast: false
matrix:
env:
- os: ubuntu-latest
name: Linux
nuke_invoke: ./build.sh
extras: |
sudo apt-get update
sudo apt-get install -y gcc-multilib
- os: windows-latest
name: Windows
nuke_invoke: ./build.cmd
extras: ""
- os: macos-latest
name: Darwin
nuke_invoke: ./build.sh
extras: ""
name: ${{ matrix.env.name }} Build
runs-on: ${{ matrix.env.os }}
steps:
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'Windows'
with:
toolchain: stable-x86_64-pc-windows-msvc
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'Linux'
with:
toolchain: stable-x86_64-unknown-linux-gnu
- uses: dtolnay/rust-toolchain@stable
if: runner.os == 'macOS'
with:
toolchain: stable-x86_64-apple-darwin
- name: Add targets
if: runner.os == 'Windows'
run: |
rustup target add i686-pc-windows-msvc
rustup target add aarch64-pc-windows-msvc
- name: Add targets
if: runner.os == 'Linux'
run: |
rustup target add i686-unknown-linux-gnu
- name: Add targets
if: runner.os == 'macOS'
run: |
rustup target add aarch64-apple-darwin
- uses: actions/checkout@v2
with:
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
- name: Checkout submodules, configure git
run: |
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive build/submodules/wgpu-native
git config --local user.email "[email protected]"
git config --local user.name "The Silk.NET Automaton"
- name: Extra prerequisites
run: |
echo running extras
${{ matrix.env.extras }}
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.201
- name: Setup .NET 7.0.102
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.102
- name: Build WGPU
run: ${{ matrix.env.nuke_invoke }} Wgpu
env:
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}