binary_artifact.yml: add a V release for Linux/ARM64 too (#8698)

Added 'build-linux-arm64' job with the QEMU support to the binary_artifact.yml file, to release vlang/v Linux/ARM64 zip archive.

Signed-off-by: odidev <odidev@puresoftware.com>
pull/8707/head
odidev 2021-02-12 23:38:55 +05:30 committed by GitHub
parent 6b431b18f5
commit 2781a2b923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 3 deletions

View File

@ -38,7 +38,40 @@ jobs:
with:
name: linux-binary
path: ./v
build-linux-arm64:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc]
env:
img: quay.io/pypa/manylinux2014_aarch64
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Compile
env:
CC: ${{ matrix.compiler }}
run: |
docker run --platform=linux/arm64 --rm -v `pwd`:`pwd` -w `pwd` ${{ env.img }} /bin/bash -c "make -j4 && ./v -cc $CC -o v -prod cmd/v && ./v -prod cmd/tools/vup.v && ./v -prod cmd/tools/vdoctor.v"
- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: linux_arm64
path: |
.
./cmd/tools/vup
./cmd/tools/vdoctor
!./.git
!./vc
!./v_old
- name: Create binary only artifact
uses: actions/upload-artifact@v2
with:
name: linux_arm64-binary
path: ./v
build-macos:
runs-on: macos-latest
strategy:
@ -99,7 +132,7 @@ jobs:
release:
name: Create Github Release
needs: [build-linux, build-windows, build-macos]
needs: [build-linux-arm64, build-linux, build-windows, build-macos]
runs-on: ubuntu-20.04
steps:
- name: Get short tag name
@ -124,7 +157,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
version: [linux, macos, windows]
version: [linux_arm64, linux, macos, windows]
steps:
- uses: actions/checkout@v1
- name: Fetch artifacts