Merge pull request #6212 from gierens/ci-build-apps-individually

feat(github): add CICD job build_programs_individually
This commit is contained in:
Daniel Hofstetter 2024-04-18 11:29:50 +02:00 committed by GitHub
commit ad91330625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1047,3 +1047,23 @@ jobs:
flags: ${{ steps.vars.outputs.CODECOV_FLAGS }}
name: codecov-umbrella
fail_ci_if_error: false
test_separately:
name: Separate Builds
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: build and test all programs individually
shell: bash
run: |
for f in $(util/show-utils.sh)
do
echo "Building and testing $f"
cargo test -p "uu_$f" || exit 1
done