buildci: generalise for all push events and PRs
This means that tags are included now Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
parent
3968796a49
commit
a6709a1307
2 changed files with 8 additions and 10 deletions
14
.github/workflows/buildci.yml
vendored
14
.github/workflows/buildci.yml
vendored
|
|
@ -1,12 +1,6 @@
|
|||
name: Build CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -31,8 +25,12 @@ jobs:
|
|||
|
||||
- name: Build
|
||||
run: |
|
||||
[ $GITHUB_REF_TYPE = "branch" ] && \
|
||||
export __REF=${GITHUB_SHA::7} || \
|
||||
export __REF=$GITHUB_REF_NAME
|
||||
|
||||
source ./.github/buildci.sh
|
||||
build_for_arch ${{ matrix.arch }} ${GITHUB_SHA::7}
|
||||
build_for_arch ${{ matrix.arch }} $__REF
|
||||
|
||||
- name: Export artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue