diff options
| author | pml68 <contact@pml68.dev> | 2025-06-16 01:07:04 +0200 |
|---|---|---|
| committer | pml68 <contact@pml68.dev> | 2025-06-16 01:07:04 +0200 |
| commit | 7398f64d515ceec4789deacde2e2ecff5175d8bc (patch) | |
| tree | d48c0b636c29b3c628d492fb88743519edfddd97 /.github/workflows | |
| parent | ci: test build on MSRV, build with `release` profile (diff) | |
| download | iced-builder-7398f64d515ceec4789deacde2e2ecff5175d8bc.tar.gz | |
ci: separate `Lint` and `Test` workflows
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/lint.yml (renamed from .github/workflows/ci.yml) | 6 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 26 |
3 files changed, 30 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 978f334..6efda6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,10 +30,10 @@ jobs: target/ key: ${{ runner.os }}-build-${{ matrix.rust-version }}-${{ hashFiles('**/Cargo.lock') }} - name: Build iced-builder binary - run: cargo build --verbose --release + run: cargo build --verbose --profile release-opt - name: Archive iced-builder binary if: matrix.rust-version == 'stable' uses: actions/upload-artifact@v4 with: name: iced-builder-x86_64-unknown-linux-gnu - path: target/ci/iced-builder + path: target/release-opt/iced-builder diff --git a/.github/workflows/ci.yml b/.github/workflows/lint.yml index e2316f3..073b5e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,7 @@ -name: CI +name: Lint on: [push, pull_request] jobs: - ci: + all: runs-on: ubuntu-latest steps: - uses: hecrj/setup-rust-action@v2 @@ -24,5 +24,3 @@ jobs: key: ${{ runner.os }}-ci-${{ hashFiles('**/Cargo.lock') }} - name: Check lints run: cargo lint - - name: Run tests - run: cargo test --verbose --profile ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..89cabd3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test +on: [push, pull_request] +jobs: + all: + runs-on: ubuntu-latest + env: + RUSTFLAGS: --deny warnings + steps: + - uses: hecrj/setup-rust-action@v2 + - uses: actions/checkout@master + - name: Install dependencies + run: | + export DEBIAN_FRONTED=noninteractive + sudo apt-get -qq update + sudo apt-get install -y libxkbcommon-dev clang mold + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-ci-${{ hashFiles('**/Cargo.lock') }} + - name: Run tests + run: cargo test --verbose --workspace -- --ignored |
