Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ardura authored Jul 19, 2024
1 parent 0f2d0d8 commit 7a9bf1c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/rust.yml
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

0 comments on commit 7a9bf1c

Please sign in to comment.