Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikachu2333 authored Dec 11, 2024
1 parent c1f315b commit ea1f78c
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,21 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- ".github/**"
- ".gitignore"
- "*.md"
- "**.txt"
- "LICENSE"
pull_request:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- ".github/**"
- ".gitignore"
- "**/*.md"
- "README.md"
- "LICENSE"

env:
CARGO_TERM_COLOR: always
Expand All @@ -13,21 +25,20 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: rust-toolchain-reborn
uses: crusty-pie/[email protected]
with:
toolchain: stable
targets: x86_64-pc-windows-msvc
default: true
override: true

- name: Build
run: cargo build -r --target=x86_64-pc-windows-msvc
- uses: actions/checkout@v4
- name: rust-toolchain-reborn
uses: crusty-pie/[email protected]
with:
toolchain: stable
targets: x86_64-pc-windows-msvc
default: true
override: true

- name: Upload
uses: actions/upload-artifact@v4
with:
- name: Build
run: cargo build -r --target=x86_64-pc-windows-msvc

- name: Upload
uses: actions/upload-artifact@v4
with:
name: Preview
path: ./target/x86_64-pc-windows-msvc/release/SC_Starter.exe

0 comments on commit ea1f78c

Please sign in to comment.