Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSpork authored Jun 18, 2024
1 parent 09d4a1e commit ed927b0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Rust

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-pc-windows-gnu

- name: Install dependencies
run: sudo apt update && sudo apt install -y mingw-w64

- name: Build project
run: cargo build --release --target x86_64-pc-windows-gnu

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: target/x86_64-pc-windows-gnu/release/

0 comments on commit ed927b0

Please sign in to comment.