-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-16285 build: Generate weekly bullseye report. (#14909)
Move builds and testing to github actions. Start with just a simple build and NLT run. Signed-off-by: Phil Henderson <phillip.henderson@intel.com>
- Loading branch information
Showing
6 changed files
with
75 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ci2-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
|
||
# reuse the cache from the landing-builds workflow if available, if not then build the images | ||
# from scratch, but do not save them. | ||
Build-and-test: | ||
name: Run DAOS/NLT tests | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
# https://github.com/EnricoMi/publish-unit-test-result-action#permissions | ||
checks: write | ||
pull-requests: write | ||
strategy: | ||
matrix: | ||
distro: [ubuntu] | ||
include: | ||
- distro: ubuntu | ||
base: ubuntu | ||
with: ubuntu:mantic | ||
env: | ||
DEPS_JOBS: 10 | ||
COMPILER: clang | ||
BASE_DISTRO: ${{ matrix.with }} | ||
DOCKER_BASE: ${{ matrix.base }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 500 | ||
ref: master | ||
- name: Setup git hash | ||
run: ./ci/gha_helper.py | ||
id: commit-hash | ||
- name: Fetch docker images from cache. | ||
uses: jpribyl/action-docker-layer-caching@v0.1.1 | ||
continue-on-error: true | ||
with: | ||
key: ${{ steps.commit-hash.outputs.key }} | ||
restore-keys: | | ||
${{ steps.commit-hash.outputs.restore }} | ||
${{ steps.commit-hash.outputs.restore_prev }} | ||
skip-save: true | ||
- name: Update dependencies in image. | ||
run: docker build . --file utils/docker/Dockerfile.${{ matrix.distro }} | ||
--build-arg DAOS_BUILD=no | ||
--build-arg DEPS_JOBS | ||
--build-arg BASE_DISTRO | ||
--build-arg DAOS_KEEP_SRC=yes | ||
--tag build-image | ||
- name: Build and Test | ||
run: docker run --name build-post --mount type=tmpfs,destination=/mnt/daos_0,tmpfs-mode=1777 | ||
--env COMPILER --env DEPS_JOBS --user root:root build-image | ||
./daos/utils/ci/run_in_gha.sh | ||
- name: Fetch results | ||
if: always() | ||
run: docker cp build-post:/home/daos/daos/nlt-junit.xml ./ | ||
- name: Publish NLT test results | ||
if: always() | ||
uses: EnricoMi/publish-unit-test-result-action@v1.17 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
files: nlt-junit.xml | ||
comment_mode: off # yamllint disable-line rule:truthy | ||
fail_on: nothing |
Oops, something went wrong.