From 61e2835f77a20c9230c15e93c6a0c7fe1e444540 Mon Sep 17 00:00:00 2001 From: Jos Dehaes Date: Fri, 17 May 2024 10:43:04 +0200 Subject: [PATCH] add linux workflow --- .github/workflows/rust-macos.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust-macos.yml b/.github/workflows/rust-macos.yml index 1066525..ea295f4 100644 --- a/.github/workflows/rust-macos.yml +++ b/.github/workflows/rust-macos.yml @@ -5,7 +5,23 @@ env: RUSTC_WRAPPER: sccache SCCACHE_GHA_ENABLED: "true" jobs: - build: + build-linux: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v3 + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 + - name: Install glib/gtk dev + run: sudo apt-get install -y libgtk-4-bin libgtk-4-common libgtk-4-dev libgstreamer1.0-dev + - name: Build + run: cargo build --release + - name: Run tests + run: cargo test + - uses: actions/upload-artifact@v3 + with: + name: ripperx4 + path: target/release/ripperx4 + build-macos: runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -14,10 +30,10 @@ jobs: - name: Install glib/gtk dev run: brew install gtk4 gstreamer libdiscid sccache - name: Build - run: cargo build + run: cargo build --release - name: Run tests run: cargo test - uses: actions/upload-artifact@v4 with: name: ripperx4 - path: target/debug/ripperx4 + path: target/release/ripperx4