Update Workflow (#193)

This commit is contained in:
Denis Angell
2023-11-09 19:01:50 +01:00
committed by GitHub
parent 63bb1906ed
commit 43cb255337
9 changed files with 34 additions and 262 deletions

View File

@@ -11,21 +11,19 @@ concurrency:
cancel-in-progress: true
jobs:
hbb:
strategy:
fail-fast: true
builder:
runs-on: [self-hosted, vanity]
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set branch name
run: echo "GITHUB_BRANCH=${{ github.head_ref || github.ref }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
clean: false
- name: Build using Docker
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 }}
run: /bin/bash release-builder.sh
unittests:
needs: builder
runs-on: [self-hosted, vanity]
steps:
- name: Unit tests
run: /bin/bash docker-unit-tests.sh