summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-03-23 16:07:59 +0100
committerpml68 <contact@pml68.dev>2025-03-23 16:07:59 +0100
commitea98cf602b5f0c1692d0dbcaea0c35060ed35391 (patch)
treec4d333b276ba4e76b5ab0121f5908da104c9d101 /.github/workflows
parentdocs: update TODO.md (diff)
downloadiced-builder-ea98cf602b5f0c1692d0dbcaea0c35060ed35391.tar.gz
ci: add caching, use mold for linking
Diffstat (limited to '')
-rw-r--r--.github/workflows/build.yml13
-rw-r--r--.github/workflows/ci.yml15
2 files changed, 23 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b0af166..25b4c6a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,9 +19,18 @@ jobs:
run: |
export DEBIAN_FRONTED=noninteractive
sudo apt-get -qq update
- sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
+ sudo apt-get install -y libxkbcommon-dev libgtk-3-dev clang mold
+ - uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build iced-builder binary
- run: cargo build --verbose --release
+ run: cargo build --verbose --profile ci
- name: Archive iced-builder binary
if: matrix.rust-version == 'stable'
uses: actions/upload-artifact@v4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eba27cf..97439df 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,8 +12,17 @@ jobs:
run: |
export DEBIAN_FRONTED=noninteractive
sudo apt-get -qq update
- sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
+ sudo apt-get install -y libxkbcommon-dev libgtk-3-dev clang mold
+ - uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check lints
- run: cargo lint
+ run: cargo lint --profile ci
- name: Run tests
- run: cargo test --verbose
+ run: cargo test --verbose --profile ci