diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 01dea9068..f1aa5bca6 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -430,4 +430,118 @@ jobs: omitBodyDuringUpdate: true body: ${{ steps.changelog.outputs.changes }} artifacts: | - amiberry-${{ steps.tag.outputs.tag }}-rk3399-sdl2-64bit-manjaro.zip \ No newline at end of file + amiberry-${{ steps.tag.outputs.tag }}-rk3399-sdl2-64bit-manjaro.zip + + build-rpi4-sdl2-64bit-debian: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Run the build process with Docker + uses: addnab/docker-run-action@v3 + with: + image: midwan/amiberry-docker-aarch64:latest + options: -v ${{ github.workspace }}:/build + run: | + make capsimg + make -j8 PLATFORM=rpi4-64-sdl2 + - uses: actions/upload-artifact@v3 + with: + name: amiberry-rpi4-sdl2-64bit-debian + path: | + amiberry + capsimg.so + abr/** + conf/** + controllers/** + data/** + inputrecordings/** + kickstarts/** + nvram/** + savestates/** + screenshots/** + whdboot/** + - name: Get tag + if: github.ref_type == 'tag' + id: tag + uses: dawidd6/action-get-tag@v1 + with: + # Optionally strip `v` prefix + strip_v: false + - name: ZIP binaries + if: github.ref_type == 'tag' + run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-64bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot + - name: Create Changelog + if: github.ref_type == 'tag' + id: changelog + uses: loopwerk/tag-changelog@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config_file: .github/tag-changelog-config.js + - name: Create Release + if: github.ref_type == 'tag' + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + omitBodyDuringUpdate: true + body: ${{ steps.changelog.outputs.changes }} + artifacts: | + amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-64bit-debian.zip + + build-rpi4-sdl2-32bit-debian: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Run the build process with Docker + uses: addnab/docker-run-action@v3 + with: + image: midwan/amiberry-docker-armhf:latest + options: -v ${{ github.workspace }}:/build + run: | + make capsimg + make -j8 PLATFORM=rpi4-sdl2 + - uses: actions/upload-artifact@v3 + with: + name: amiberry-rpi4-sdl2-32bit-debian + path: | + amiberry + capsimg.so + abr/** + conf/** + controllers/** + data/** + inputrecordings/** + kickstarts/** + nvram/** + savestates/** + screenshots/** + whdboot/** + - name: Get tag + if: github.ref_type == 'tag' + id: tag + uses: dawidd6/action-get-tag@v1 + with: + # Optionally strip `v` prefix + strip_v: false + - name: ZIP binaries + if: github.ref_type == 'tag' + run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-32bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot + - name: Create Changelog + if: github.ref_type == 'tag' + id: changelog + uses: loopwerk/tag-changelog@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + config_file: .github/tag-changelog-config.js + - name: Create Release + if: github.ref_type == 'tag' + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + omitBodyDuringUpdate: true + body: ${{ steps.changelog.outputs.changes }} + artifacts: | + amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-32bit-debian.zip