-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (38 loc) · 1.14 KB
/
build-nightly.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
name: Build (nightly)
on:
push:
branches: [ "main", "lightfall" ]
paths-ignore:
- "**/.md"
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build Nightly (${{ matrix.platform }})
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: true
matrix:
platform: [ windows-latest ]
toolchain: [ stable ]
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "rust-build"
# - name: Install cargo-edit
# run: cargo install cargo-edit --force
- name: Add nightly version metadata
run:
./.github/cargo-set-version.exe set-version --package alkahest --metadata "nightly.$(date +'%Y%m%d%H%M')"
- name: Build
run: cargo build --verbose --release
- name: Publish artifact
if: matrix.platform == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: alkahest
path: |
./target/release/*.exe
./target/release/*.pdb