-
Notifications
You must be signed in to change notification settings - Fork 95
60 lines (49 loc) · 1.66 KB
/
rebuild-bindings.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
name: Rebuild bindings
on: workflow_dispatch
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
id: toolchain
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
override: true
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- name: Setup cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-test-rustc-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --features "rebuild-bindings"
working-directory: steamworks-sys
env:
STEAM_SDK_LOCATION: ./lib/steam
- uses: actions/upload-artifact@v4
with:
name: artifact-linux-bindings
path: steamworks-sys/src/linux_bindings.rs
if: matrix.os == 'ubuntu-latest'
- uses: actions/upload-artifact@v4
with:
name: artifact-macos-bindings
path: steamworks-sys/src/macos_bindings.rs
if: matrix.os == 'macos-latest'
- uses: actions/upload-artifact@v4
with:
name: artifact-windows-bindings
path: steamworks-sys/src/windows_bindings.rs
if: matrix.os == 'windows-latest'