-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.79 KB
/
build.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
name: Build Nexus Steam Integration DLL
on:
workflow_dispatch:
push:
tags: [ '*' ]
env:
CARGO_TERM_COLOR: always
CLIENT_DLL_NAME: nexus_steam_integration
jobs:
build-lib:
name: Build DLL
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build Step
run: |
cargo build --release
cp target\release\build\steamworks-sys-2c1f1d918ad858ab\out\steam_api64.dll target\release\steam_api64.dll
cp target\release\build\steamworks-sys-2c1f1d918ad858ab\out\steam_api64.lib target\release\steam_api64.lib
- name: Upload Library
uses: actions/upload-artifact@v4
with:
name: ${{ env.CLIENT_DLL_NAME }}
path: |
target\release\${{ env.CLIENT_DLL_NAME }}.dll
target\release\steam_api64.dll
target\release\steam_api64.lib
release:
name: Release Binaries
runs-on: ubuntu-latest
needs: [ build-lib ]
permissions:
contents: write
if: ${{ startsWith(github.event.ref, 'refs/tags/') }}
steps:
- uses: actions/download-artifact@v4
name: Download Artifacts
with:
merge-multiple: true
- name: Release Dlls
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.CLIENT_DLL_NAME }}.dll
steam_api64.dll
steam_api64.lib