test #232
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| name: Building V8 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: ${{ matrix.distro }} / v8-${{ matrix.version }} | |
| # V8 version from node-20: https://github.com/nodejs/node/blob/v20.x-staging-backport/deps/v8/include/v8-version.h | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| distro: [ 'debian-11-ppc64' ] | |
| version: [ '11.9.169.7' ] | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| platforms: linux/ppc64le | |
| context: ${{ matrix.distro }} | |
| push: false | |
| build-args: | | |
| v8_version=${{ matrix.version }} | |
| - name: copy | |
| run: | | |
| docker run -d --name myrun mybuild | |
| docker cp myrun:/v8-${{ matrix.version }}-static.tar.xz . | |
| docker stop myrun | |
| mv v8-${{ matrix.version }}-static.tar.xz v8-${{ matrix.version }}-${{ matrix.distro }}.tar.xz | |
| - name: store | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: v8-${{ matrix.version }}-${{ matrix.distro }} | |
| path: v8-${{ matrix.version }}-${{ matrix.distro }}.tar.xz | |
| release: | |
| runs-on: ubuntu-latest | |
| name: Store binaries as GitHub release | |
| needs: [build] | |
| if: startsWith(github.ref, 'refs/tags/') | |
| steps: | |
| - name: Download artifacts for deployment | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Recompress with gzip | |
| run: | | |
| mkdir assets; | |
| cp artifacts/*/v8-*.tar.xz assets/ | |
| (cd assets; xz -dk *.xz; gzip *.tar) | |
| - name: Release artifacts | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: assets/* |