diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-05-13 13:45:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 13:45:19 +0100 |
commit | 3a4e08a78b41528b82aaa9c087a55242cefecf2f (patch) | |
tree | aef202465e0a423b16321cefdfaffea0079ee511 /.github/workflows/nightly.yml | |
parent | c87a3f8f6c698e62bc95f801755db8c4281bebe7 (diff) | |
parent | 7eb63188e56bc8cc7d211c9482d8483a507c4a15 (diff) | |
download | libgit2-3a4e08a78b41528b82aaa9c087a55242cefecf2f.tar.gz |
Merge pull request #6488 from libgit2/ethomson/workflow
actions: simplify execution with composite action
Diffstat (limited to '.github/workflows/nightly.yml')
-rw-r--r-- | .github/workflows/nightly.yml | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f461530ae..18328a784 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -340,35 +340,20 @@ jobs: run: docker build -t ${{ env.docker-registry-container-sha }} -f ${{ env.dockerfile }} . working-directory: ${{ env.docker-config-path }} if: matrix.platform.container.name != '' && env.docker-container-exists != 'true' - - name: Build and test - run: | - export GITTEST_NEGOTIATE_PASSWORD="${{ secrets.GITTEST_NEGOTIATE_PASSWORD }}" - - if [ -n "${{ matrix.platform.container.name }}" ]; then - docker run \ - --rm \ - --user libgit2:libgit2 \ - -v "$(pwd)/source:/home/libgit2/source" \ - -w /home/libgit2 \ - -e ASAN_SYMBOLIZER_PATH \ - -e CC \ - -e CFLAGS \ - -e CMAKE_GENERATOR \ - -e CMAKE_OPTIONS \ - -e GITTEST_NEGOTIATE_PASSWORD \ - -e GITTEST_FLAKY_STAT \ - -e PKG_CONFIG_PATH \ - -e SKIP_NEGOTIATE_TESTS \ - -e SKIP_SSH_TESTS \ - -e TSAN_OPTIONS \ - ${{ env.docker-registry-container-sha }} \ - /bin/bash -c "mkdir build && cd build && ../source/ci/build.sh && ../source/ci/test.sh" - else - mkdir build && cd build - ../source/ci/build.sh - ../source/ci/test.sh - fi - shell: bash + - name: Prepare build + run: mkdir build + - name: Build + uses: ./source/.github/actions/run-build + with: + command: cd build && ../source/ci/build.sh + container: ${{ matrix.platform.container.name }} + container-version: ${{ env.docker-registry-container-sha }} + - name: Test + uses: ./source/.github/actions/run-build + with: + command: cd build && ../source/ci/test.sh + container: ${{ matrix.platform.container.name }} + container-version: ${{ env.docker-registry-container-sha }} coverity: # Only run scheduled workflows on the main repository; prevents people |