From 0a3f3f3378d91136c321c8b02f4452a46c787533 Mon Sep 17 00:00:00 2001 From: tranfelix Date: Mon, 16 Oct 2023 16:01:00 +0200 Subject: [PATCH] add libgtk4 to workflows --- .github/workflows/release.yml | 6 ++-- .github/workflows/rust.yml | 52 ++++++++++++++++++----------------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07c29f1..86ca488 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ on: release: - types: [created] + types: [ created ] jobs: release: @@ -9,9 +9,11 @@ jobs: - uses: actions/checkout@v3 - name: nightly-rust uses: actions-rs/toolchain@v1 - with: + with: profile: minimal toolchain: nightly + - name: Install gtk + run: sudo apt install libgtk-4-dev -y - name: Build run: cargo build --release --verbose - name: Release diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cc6ac46..cae8716 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,29 +14,31 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: nightly-rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - - name: Cache - uses: actions/cache@v3 - with: - path: target/debug - key: ${{ runner.os }}-cache - - name: run code coverage - uses: actions-rs/tarpaulin@v0.1 - with: - version: '0.15.0' - args: '-- --test-threads 1' - - name: upload code coverage - uses: actions/upload-artifact@v1 - with: - name: code-coverage-report - path: cobertura.xml + - uses: actions/checkout@v3 + - name: nightly-rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - name: Install gtk + run: sudo apt install libgtk-4-dev -y + - name: Cache + uses: actions/cache@v3 + with: + path: target/debug + key: ${{ runner.os }}-cache + - name: run code coverage + uses: actions-rs/tarpaulin@v0.1 + with: + version: '0.15.0' + args: '-- --test-threads 1' + - name: upload code coverage + uses: actions/upload-artifact@v1 + with: + name: code-coverage-report + path: cobertura.xml - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose