cleanup binary_artifact.yml, remove failing build-linux-arm64 job

pull/11208/head weekly.2021.33.1
Delyan Angelov 2021-08-16 11:13:50 +03:00
parent f8d6fe7a8b
commit 9aa84082fd
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 141 additions and 178 deletions

View File

@ -2,206 +2,169 @@ name: Build binary artifacts
on: on:
push: push:
tags: tags:
- weekly.** - weekly.**
- 0.** - 0.**
jobs: jobs:
build-linux: build-linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc]
steps:
- uses: actions/checkout@v1
- name: Compile
env:
CC: ${{ matrix.compiler }}
run: |
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
path: |
.
./cmd/tools/vup
./cmd/tools/vdoctor
!./.git
!./vc
!./v_old
- name: Create binary only artifact
uses: actions/upload-artifact@v2
with:
name: linux-binary
path: ./v
build-linux-arm64:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc]
env: env:
img: quay.io/pypa/manylinux2014_aarch64 CC: gcc
steps: steps:
- name: Checkout - uses: actions/checkout@v1
uses: actions/checkout@v1 - name: Compile
- name: Set up QEMU run: |
id: qemu make -j4
uses: docker/setup-qemu-action@v1 ./v -cc $CC -o v -prod cmd/v
- name: Compile ./v -prod cmd/tools/vup.v
env: ./v -prod cmd/tools/vdoctor.v
CC: ${{ matrix.compiler }} - name: Create artifact
run: | uses: actions/upload-artifact@v2
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" with:
- name: Create artifact name: linux
uses: actions/upload-artifact@v2 path: |
with: .
name: linux_arm64 ./cmd/tools/vup
path: | ./cmd/tools/vdoctor
. !./.git
./cmd/tools/vup !./vc
./cmd/tools/vdoctor !./v_old
!./.git - name: Create binary only artifact
!./vc uses: actions/upload-artifact@v2
!./v_old with:
- name: Create binary only artifact name: linux-binary
uses: actions/upload-artifact@v2 path: ./v
with:
name: linux_arm64-binary
path: ./v
build-macos: build-macos:
runs-on: macos-latest runs-on: macos-latest
strategy:
matrix:
compiler: [clang]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Compile - name: Compile
env: env:
CC: ${{ matrix.compiler }} CC: clang
run: | run: |
make -j4 make -j4
./v -cc $CC -o v -prod cmd/v ./v -cc $CC -o v -prod cmd/v
./v -prod cmd/tools/vup.v ./v -prod cmd/tools/vup.v
./v -prod cmd/tools/vdoctor.v ./v -prod cmd/tools/vdoctor.v
- name: Create artifact - name: Create artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: macos name: macos
path: | path: |
. .
./cmd/tools/vup ./cmd/tools/vup
./cmd/tools/vdoctor ./cmd/tools/vdoctor
!./.git !./.git
!./vc !./vc
!./v_old !./v_old
- name: Create binary only artifact - name: Create binary only artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: macos-binary name: macos-binary
path: ./v path: ./v
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
- name: Compile - name: Compile
run: | run: |
.\make.bat .\make.bat
.\v.exe cmd\tools\vup.v .\v.exe cmd\tools\vup.v
.\v.exe cmd\tools\vdoctor.v .\v.exe cmd\tools\vdoctor.v
- name: Create artifact - name: Create artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: windows name: windows
path: | path: |
. .
./cmd/tools/vup.exe ./cmd/tools/vup.exe
./cmd/tools/vdoctor.exe ./cmd/tools/vdoctor.exe
!./.git !./.git
!./vc !./vc
!./v_old.exe !./v_old.exe
- name: Create binary only artifact - name: Create binary only artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: windows-binary name: windows-binary
path: ./v.exe path: ./v.exe
release: release:
name: Create Github Release name: Create Github Release
needs: [build-linux-arm64, 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
uses: jungwinter/split@v1 uses: jungwinter/split@v1
id: split id: split
with: with:
msg: ${{ github.ref }} msg: ${{ github.ref }}
seperator: / seperator: /
- name: Create Release - name: Create Release
id: create_release id: create_release
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.split.outputs._2 }} tag: ${{ steps.split.outputs._2 }}
name: ${{ steps.split.outputs._2 }} name: ${{ steps.split.outputs._2 }}
commit: ${{ github.sha }} commit: ${{ github.sha }}
draft: false draft: false
prerelease: false prerelease: false
publish: publish:
needs: [release] needs: [release]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
version: [linux_arm64, linux, macos, windows] version: [linux, macos, windows]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Fetch artifacts - name: Fetch artifacts
uses: actions/download-artifact@v1 uses: actions/download-artifact@v1
with: with:
name: ${{ matrix.version }} name: ${{ matrix.version }}
path: ./${{ matrix.version }} path: ./${{ matrix.version }}
- name: Build Zip Archives - name: Build Zip Archives
run: | run: |
mkdir -p workdir/ mkdir -p workdir/
mv ${{ matrix.version }}/ workdir/v/ mv ${{ matrix.version }}/ workdir/v/
cd workdir/v/ cd workdir/v/
chmod 755 v || true chmod 755 v || true
chmod 755 v.exe || true chmod 755 v.exe || true
chmod 755 thirdparty/tcc/tcc.exe || true chmod 755 thirdparty/tcc/tcc.exe || true
chmod 755 cmd/tools/vup || true chmod 755 cmd/tools/vup || true
chmod 755 cmd/tools/vup.exe || true chmod 755 cmd/tools/vup.exe || true
chmod 755 cmd/tools/vdoctor || true chmod 755 cmd/tools/vdoctor || true
chmod 755 cmd/tools/vdoctor.exe || true chmod 755 cmd/tools/vdoctor.exe || true
rm -rf v_old v_old.exe rm -rf v_old v_old.exe
cd .. cd ..
zip -r9 --symlinks ../v_${{ matrix.version }}.zip v/* zip -r9 --symlinks ../v_${{ matrix.version }}.zip v/*
cd .. cd ..
rm -rf workdir/ rm -rf workdir/
- name: Get short tag name - name: Get short tag name
uses: jungwinter/split@v1 uses: jungwinter/split@v1
id: split id: split
with: with:
msg: ${{ github.ref }} msg: ${{ github.ref }}
seperator: / seperator: /
- name: Get release - name: Get release
id: get_release_info id: get_release_info
uses: leahlundqvist/get-release@v1.3.1 uses: leahlundqvist/get-release@v1.3.1
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ github.token }}
with: with:
tag_name: ${{ steps.split.outputs._2 }} tag_name: ${{ steps.split.outputs._2 }}
- name: Upload Release Asset - name: Upload Release Asset
id: upload-release-asset id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1 uses: actions/upload-release-asset@v1.0.1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }} upload_url: ${{ steps.get_release_info.outputs.upload_url }}
asset_path: ./v_${{ matrix.version }}.zip asset_path: ./v_${{ matrix.version }}.zip
asset_name: v_${{ matrix.version }}.zip asset_name: v_${{ matrix.version }}.zip
asset_content_type: application/zip asset_content_type: application/zip