Fix HBB workflow (#191)

* Update build-in-docker.yml

* Update build-in-docker.yml

* Update build-in-docker.yml

* Update build-core.sh

* update workflow

* Update build-core.sh

* Update build-core.sh

* Update build-core.sh

* Update build-core.sh

* update workflow

* fix workflow

* Update xahaud.binary.dockerfile

* fixup

* fixup

* fixup

* fixup

* fixup

* fixup

* Update build-in-docker.yml
This commit is contained in:
Denis Angell
2023-11-09 12:20:51 +01:00
committed by GitHub
parent 91f9e424a3
commit 2a18ec563d
7 changed files with 259 additions and 21 deletions

View File

@@ -11,23 +11,21 @@ concurrency:
cancel-in-progress: true
jobs:
builder:
hbb:
strategy:
fail-fast: false
fail-fast: true
runs-on: [self-hosted, vanity]
steps:
- uses: actions/checkout@v3
with:
clean: false
- name: checkout
uses: actions/checkout@v3
- name: Set branch name
run: echo "GITHUB_BRANCH=${{ github.head_ref || github.ref }}" >> $GITHUB_ENV
- name: Build using Docker
run: /bin/bash release-builder.sh
unittests:
strategy:
fail-fast: false
needs: builder
runs-on: [self-hosted, vanity]
steps:
- name: Unit tests
run: /bin/bash docker-unit-tests.sh
run: docker build -f xahaud.binary.dockerfile --build-arg GITHUB_RUN_NUMBER=${{ github.run_number }} --build-arg GITHUB_BRANCH=${{ env.GITHUB_BRANCH }} -t transia/xahaud-binary:${{ github.sha }} .
- name: Release using Docker
run: /bin/bash release.sh ${{ env.GITHUB_BRANCH }} ${{ github.run_number }} ${{ github.sha }}
- name: Test using Docker
run: docker run --rm -i transia/xahaud-binary:${{ github.sha }} sh -c '/io/release-build/xahaud -u'
- name: Clean up Docker
run: docker rmi transia/xahaud-binary:${{ github.sha }}