Skip to content

Add initial build action #3

Add initial build action

Add initial build action #3

Workflow file for this run

name: Rust
on:
push:
# branches: ["main"]
# pull_request:
# branches: ["main"]
env:
CARGO_TERM_COLOR: always
APP_NAME: sonny_sorter
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
include:
- os: ubuntu-latest
distro: linux
- os: windows-latest
distro: windows
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}_${{ matrix.distro }}
path: target/release/${{ env.APP_NAME }}