ci: build docker image with v8 lib #15
Workflow file for this run
This file contains 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
name: build-release | |
env: | |
ZIG_VERSION: 0.11.0 | |
mode: release | |
os: linux | |
arch: x86_64 | |
on: | |
pull_request: | |
branches: | |
- fork | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-release: | |
strategy: | |
matrix: | |
include: | |
- arch: x86_64 | |
os: linux | |
build_arch: amd64 | |
name: build-release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- uses: docker/setup-buildx-action@v3 | |
id: buildx | |
with: | |
install: true | |
- name: Docker build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: false | |
build-args: | | |
ARCH=${{matrix.arch}} | |
OS=${{matrix.os}} | |
platforms: linux/${{matrix.build_arch}} | |
outputs: type=local,dest=/libc_v8.a | |
- name: Upload dependencies | |
uses: actions/upload-artifact@v3 | |
with: | |
name: libc_v8-${{matrix.os}}-${{matrix.arch}} | |
path: /libc_v8.a |