mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
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>
This commit is contained in:
parent
6b431b18f5
commit
2781a2b923
39
.github/workflows/binary_artifact.yml
vendored
39
.github/workflows/binary_artifact.yml
vendored
@ -38,7 +38,40 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: linux-binary
|
name: linux-binary
|
||||||
path: ./v
|
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:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -99,7 +132,7 @@ jobs:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create Github 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
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Get short tag name
|
- name: Get short tag name
|
||||||
@ -124,7 +157,7 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [linux, macos, windows]
|
version: [linux_arm64, linux, macos, windows]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Fetch artifacts
|
- name: Fetch artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user