mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Run rust_build CI between multiple Rust versions (#2939)
* Add rust_build_next job to test upcoming Rust versions This way, build failures on a upcoming Rust version can be found earlier, and doesn't hold new Kanidm releases. * yamlllinttttt the GitHub workflows --------- Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
This commit is contained in:
parent
b669a681f1
commit
3298eecc8a
6
.github/workflows/docker_build_kanidm.yml
vendored
6
.github/workflows/docker_build_kanidm.yml
vendored
|
@ -69,5 +69,7 @@ jobs:
|
|||
|
||||
- name: Push image to GHCR
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/kanidm-docker.tar:devel" "ghcr.io/${{ github.repository_owner }}/kanidm:devel"
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | \
|
||||
oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/kanidm-docker.tar:devel" \
|
||||
"ghcr.io/${{ github.repository_owner }}/kanidm:devel"
|
||||
|
|
6
.github/workflows/docker_build_kanidmd.yml
vendored
6
.github/workflows/docker_build_kanidmd.yml
vendored
|
@ -85,5 +85,7 @@ jobs:
|
|||
|
||||
- name: Push image to GHCR
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/kanidmd-docker.tar:devel" "ghcr.io/${{ github.repository_owner }}/kanidmd:devel"
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | \
|
||||
oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/kanidmd-docker.tar:devel" \
|
||||
"ghcr.io/${{ github.repository_owner }}/kanidmd:devel"
|
||||
|
|
6
.github/workflows/docker_build_radiusd.yml
vendored
6
.github/workflows/docker_build_radiusd.yml
vendored
|
@ -69,5 +69,7 @@ jobs:
|
|||
# features, but ORAS will: https://oras.land/docs/commands/oras_copy
|
||||
- name: Push image to GHCR
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/radius-docker.tar:devel" "ghcr.io/${{ github.repository_owner }}/radius:devel"
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | \
|
||||
oras login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||
oras copy --from-oci-layout "/tmp/radius-docker.tar:devel" \
|
||||
"ghcr.io/${{ github.repository_owner }}/radius:devel"
|
||||
|
|
48
.github/workflows/rust_build.yml
vendored
48
.github/workflows/rust_build.yml
vendored
|
@ -55,6 +55,54 @@ jobs:
|
|||
- name: "Check disk space at the end"
|
||||
run:
|
||||
du -shc *
|
||||
rust_build_next:
|
||||
# build future versions to find possible next-version bugs
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: true
|
||||
RUSTC_WRAPPER: sccache
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_TERM_COLOR: always
|
||||
strategy:
|
||||
matrix:
|
||||
rust_version: ['beta', 'nightly']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
toolchain: ${{ matrix.rust_version }}
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.5
|
||||
with:
|
||||
version: "v0.4.2"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && \
|
||||
sudo apt-get install -y \
|
||||
libpam0g-dev \
|
||||
libudev-dev \
|
||||
libssl-dev
|
||||
|
||||
- name: "Build the workspace"
|
||||
run: cargo build --workspace
|
||||
- name: "Check disk space and size of target, then clean it"
|
||||
run: |
|
||||
df -h
|
||||
echo "Checking base dir"
|
||||
du -shc *
|
||||
echo "Checking target dir"
|
||||
du -shc target/*
|
||||
rm -rf target/*
|
||||
|
||||
- name: "Run cargo test"
|
||||
run: cargo test
|
||||
- name: "Check disk space at the end"
|
||||
run:
|
||||
du -shc *
|
||||
|
||||
run_release:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue