forked from neptuwunium/enterance
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (40 loc) · 975 Bytes
/
rust.yml
File metadata and controls
40 lines (40 loc) · 975 Bytes
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
name: Build
on:
push:
branches: [ "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest,windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Update rust
run: rustup update stable
- name: Use stable
run: rustup override set stable
- name: Version
run: rustup --version
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "31.1"
- name: Build
run: cargo build --verbose --release
- name: Name
id: exe
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "EXE_NAME=enterance.exe" >> $GITHUB_ENV
else
echo "EXE_NAME=enterance" >> $GITHUB_ENV
fi
shell: bash
- name: Upload
uses: actions/upload-artifact@v4
with:
name: enterance-${{ matrix.os }}
path: target/release/${{ env.EXE_NAME }}