Skip to content

Commit

Permalink
Add build action to release
Browse files Browse the repository at this point in the history
  • Loading branch information
pdamianik committed Jan 14, 2024
1 parent 84653a5 commit 1e1f248
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Rust

on:
release:
types: [ published ]

env:
CARGO_TERM_COLOR: always

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: install gtk dependencies
run: |
sudo apt update
sudo apt install libgtk-4-dev build-essential
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose
- name: Publish GitHub Release Artifacts
uses: SierraSoftworks/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
overwrite: 'true'
files: |
target/release/spelling_trainer | spelling_trainer
build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose
- name: Publish GitHub Release Artifacts
uses: SierraSoftworks/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
overwrite: 'true'
files: |
target/release/spelling_trainer.exe | spelling_trainer.exe

0 comments on commit 1e1f248

Please sign in to comment.