From 7a9bf1c45c6186b523bb581d9bdb2bfa79595fd0 Mon Sep 17 00:00:00 2001 From: ardura <31751444+ardura@users.noreply.github.com> Date: Fri, 19 Jul 2024 08:58:35 -0700 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..475e5b5 --- /dev/null +++ b/.github/workflows/rust.yml @@ -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/install-package@v1.1.0 + 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