mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
ci: use custom build image
This commit is contained in:
parent
75301868de
commit
e46fdce14c
3 changed files with 10 additions and 18 deletions
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
|
|
||||||
clippy-base:
|
clippy-base:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
name: 'Clippy (Base features)'
|
name: 'Clippy (Base features)'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -31,9 +32,6 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
name: Cache dependencies
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --no-default-features --features config+json
|
run: cargo clippy --no-default-features --features config+json
|
||||||
env:
|
env:
|
||||||
|
@ -43,6 +41,7 @@ jobs:
|
||||||
|
|
||||||
clippy-all:
|
clippy-all:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
name: 'Clippy (All features)'
|
name: 'Clippy (All features)'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -50,9 +49,6 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
name: Cache dependencies
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all-targets --all-features
|
run: cargo clippy --all-targets --all-features
|
||||||
env:
|
env:
|
||||||
|
@ -62,6 +58,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: 'Build & Test'
|
name: 'Build & Test'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -69,9 +66,6 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
name: Cache dependencies
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
|
|
||||||
|
@ -83,6 +77,7 @@ jobs:
|
||||||
feature-checks:
|
feature-checks:
|
||||||
name: 'Check feature flag'
|
name: 'Check feature flag'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -126,6 +121,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
run: cargo check --no-default-features --features ${{ matrix.feature }}
|
run: cargo check --no-default-features --features ${{ matrix.feature }}
|
||||||
env:
|
env:
|
||||||
|
|
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
@ -41,6 +41,7 @@ jobs:
|
||||||
publish-crate:
|
publish-crate:
|
||||||
name: 'Publish Crate'
|
name: 'Publish Crate'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -50,9 +51,6 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Publish crate
|
- name: Publish crate
|
||||||
uses: katyo/publish-crates@v1
|
uses: katyo/publish-crates@v1
|
||||||
with:
|
with:
|
||||||
|
@ -62,6 +60,7 @@ jobs:
|
||||||
publish-schema:
|
publish-schema:
|
||||||
name: 'Publish Schema'
|
name: 'Publish Schema'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -69,9 +68,6 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
name: Cache dependencies
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Ensure target folder
|
- name: Ensure target folder
|
||||||
run: mkdir -p target
|
run: mkdir -p target
|
||||||
|
|
||||||
|
|
4
.github/workflows/schema.yml
vendored
4
.github/workflows/schema.yml
vendored
|
@ -13,6 +13,7 @@ jobs:
|
||||||
publish-schema:
|
publish-schema:
|
||||||
name: 'Publish Schema'
|
name: 'Publish Schema'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/jakestanger/ironbar-build:master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -20,9 +21,6 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
name: Cache dependencies
|
name: Cache dependencies
|
||||||
|
|
||||||
- name: Install build deps
|
|
||||||
run: ./.github/scripts/ubuntu_setup.sh
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --features schema
|
run: cargo build --features schema
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue