Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu authored Oct 12, 2023
1 parent 1e67ba1 commit 95b84d7
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build on Ubuntu
run: cargo build --release
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: GNU/Linux binaries
path: target/release/subboard-mng-gui
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Build on macOS
run: cargo build --release
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: macOS binaries
path: target/release/subboard-mng-gui
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build on Windows
run: cargo build --release
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Windows binaries
path: target/release/subboard-mng-gui.exe

0 comments on commit 95b84d7

Please sign in to comment.