diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 0573e16c..40eedf89 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -157,40 +157,40 @@ jobs: name: build-test-artifacts path: upload/*.* -cross-build: - runs-on: ubuntu-latest - defaults: - run: - shell: bash - working-directory: ./ - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - - name: Clone ci-tools repo - uses: actions/checkout@v3 - with: - repository: pyswmm/ci-tools - ref: master - path: ci-tools - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - - - name: start docker - run: docker run -id --name cross --volume="./:/swmm" karosc/build_swmm_arm64:latest - - - name: Build and unit test - run: docker exec cross /bin/bash -c "cd /swmm && ./ci-tools/linux/make.sh -t -g 'Unix Makefiles'" - - - name: Build for reg test - run: docker exec cross /bin/bash -c "cd /swmm && ./.github/docker_tools/run_reg_test.sh" - - - name: Upload artifacts - if: ${{ always() }} - uses: actions/upload-artifact@v3 - with: - name: build-test-artifacts - path: upload/*.* + cross-build: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + working-directory: ./ + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Clone ci-tools repo + uses: actions/checkout@v3 + with: + repository: pyswmm/ci-tools + ref: master + path: ci-tools + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: all + + - name: start docker + run: docker run -id --name cross --volume="./:/swmm" karosc/build_swmm_arm64:latest + + - name: Build and unit test + run: docker exec cross /bin/bash -c "cd /swmm && ./ci-tools/linux/make.sh -t -g 'Unix Makefiles'" + + - name: Build for reg test + run: docker exec cross /bin/bash -c "cd /swmm && ./.github/docker_tools/run_reg_test.sh" + + - name: Upload artifacts + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: build-test-artifacts + path: upload/*.*