-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Move ubuntu build to reusable workflow
- Loading branch information
1 parent
f4d29b6
commit 66d0592
Showing
2 changed files
with
28 additions
and
15 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,23 @@ | ||
name: Ubuntu | ||
description: Build ubuntu builds | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install alsa | ||
shell: bash | ||
run: sudo apt update && sudo apt install libasound2-dev libgtk-3-dev | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release | ||
- name: Chmod +x | ||
shell: bash | ||
run: chmod +x target/release/neothesia | ||
- name: zip binary | ||
shell: bash | ||
run: zip -rj app.zip target/release/neothesia | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ubuntu-artifact | ||
path: app.zip |
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