-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (49 loc) · 1.29 KB
/
Copy pathPre-build.yml
File metadata and controls
55 lines (49 loc) · 1.29 KB
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
# GitHub Actions workflow for Rust project
# Builds and tests the SC_Starter application on Windows
name: Rust
on:
push:
branches: ["main"]
# Ignore documentation and configuration changes
paths-ignore:
- ".github/**"
- ".gitignore"
- "*.md"
- "**.txt"
- "LICENSE"
pull_request:
branches: ["main"]
# Ignore documentation and configuration changes
paths-ignore:
- ".github/**"
- ".gitignore"
- "**/*.md"
- "README.md"
- "LICENSE"
env:
# Enable colored output for cargo commands
CARGO_TERM_COLOR: always
jobs:
build:
# Use the latest available Windows runner
runs-on: windows-latest
steps:
# Checkout the repository source code
- uses: actions/checkout@v4
# Install and configure Rust toolchain
- name: rust-toolchain-reborn
uses: crusty-pie/toolchain@v1.0.8
with:
toolchain: stable
targets: x86_64-pc-windows-gnu
default: true
override: true
# Build the project in release mode
- name: Build
run: cargo b -r
# Upload the built executable as an artifact
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Preview
path: ./target/release/SC_Starter.exe