mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Bumps the all group with 1 update: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action). Updates `mozilla-actions/sccache-action` from 0.0.5 to 0.0.6 - [Release notes](https://github.com/mozilla-actions/sccache-action/releases) - [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.5...v0.0.6) --- updated-dependencies: - dependency-name: mozilla-actions/sccache-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
135 lines
3.4 KiB
YAML
135 lines
3.4 KiB
YAML
---
|
|
name: "Linux Build and Test"
|
|
# Trigger the workflow on push to master or pull request
|
|
"on":
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
env:
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
RUSTC_WRAPPER: "sccache"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
rust_build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
SCCACHE_GHA_ENABLED: true
|
|
RUSTC_WRAPPER: sccache
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_TERM_COLOR: always
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.6
|
|
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 *
|
|
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.6
|
|
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:
|
|
SCCACHE_GHA_ENABLED: true
|
|
RUSTC_WRAPPER: sccache
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_TERM_COLOR: always
|
|
MALLOC_CONF: "thp:always,metadata_thp:always"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.6
|
|
with:
|
|
version: "v0.4.2"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update && \
|
|
sudo apt-get install -y \
|
|
libpam0g-dev \
|
|
libudev-dev \
|
|
libssl-dev \
|
|
ripgrep
|
|
- name: "Run the release build test script"
|
|
env:
|
|
BUILD_MODE: release
|
|
run: ./scripts/test_run_release_server.sh
|