-
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
49 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,49 @@ | ||
name: rust | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build_macos: | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run bundler | ||
run: cargo xtask bundle GladeDesk --profile release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos_build | ||
path: target/bundled/* | ||
if-no-files-found: warn | ||
build_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ConorMacBride/[email protected] | ||
with: | ||
# Packages to install with apt on Linux | ||
apt: libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxkbcommon-x11-dev libatk1.0-dev build-essential libgtk-3-dev libxcb-dri2-0-dev libxcb-icccm4-dev libx11-xcb-dev | ||
- uses: actions/checkout@v3 | ||
- name: Run bundler | ||
run: cargo xtask bundle GladeDesk --profile release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux_build | ||
path: target/bundled/* | ||
if-no-files-found: warn | ||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run bundler | ||
run: cargo xtask bundle GladeDesk --profile release | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows_build | ||
path: target/bundled/* | ||
if-no-files-found: warn |