diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf477d7..8a56657 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,10 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # - name: Set up QEMU - # uses: docker/setup-qemu-action@v2 - # with: - # platforms: 'arm64,arm' + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: 'arm64,arm' - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -57,38 +57,38 @@ jobs: with: context: raceboat-builder-image file: raceboat-builder-image/Dockerfile - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: ${{ steps.cache.outputs.cache-from }} cache-to: ${{ steps.cache.outputs.cache-to }} - # build: - # runs-on: ubuntu-latest - # container: - # image: ghcr.io/tst-race/race-images/race-compile:main - # credentials: - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} - # steps: - # - name: Checkout - # uses: actions/checkout@v3 + build: + runs-on: ubuntu-latest + container: + image: ghcr.io/tst-race/raceboat/raceboat-builder:${{ steps.meta.outputs.tags }} + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v3 - # - name: Build - # run: ./build_it_all.sh + - name: Build + run: ./build_it_all.sh - # - name: Build-pt - # run: ./pluggable-transport/build.sh -p=build/LINUX_x86_64/language-shims/source/include/src/core + - name: Build-pt + run: ./pluggable-transport/build.sh -p=build/LINUX_x86_64/language-shims/source/include/src/core - # - name: Create Build Artifact - # run: "tar cvf ${{ github.event.repository.name }}.tar.gz -C racesdk/package/ ." + - name: Create Build Artifact + run: "tar cvf ${{ github.event.repository.name }}.tar.gz -C racesdk/package/ ." - # - name: Upload Build Artifact - # uses: actions/upload-artifact@v3 - # with: - # name: "${{ github.event.repository.name }}-linux-x86_64.tar.gz" - # path: "${{ github.event.repository.name }}-linux-x86_64.tar.gz" - # retention-days: 10 + - name: Upload Build Artifact + uses: actions/upload-artifact@v3 + with: + name: "${{ github.event.repository.name }}-linux-x86_64.tar.gz" + path: "${{ github.event.repository.name }}-linux-x86_64.tar.gz" + retention-days: 10 # # todo base these on the raceboat image # test-unit: