-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |