Use GitHub Actions syntax to skip nightly builds
This commit is contained in:
parent
444613d2a2
commit
e9cd9f33c4
32
.github/workflows/nightly-mac-native.yml
vendored
32
.github/workflows/nightly-mac-native.yml
vendored
@ -1,32 +0,0 @@
|
||||
name: Nightly native Mac build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '50 1 * * *'
|
||||
|
||||
jobs:
|
||||
build-mac-native:
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
name: checkout
|
||||
|
||||
- run: ./bintray_nightly_check.sh
|
||||
name: nightly-check
|
||||
env:
|
||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
||||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
|
||||
- run: ./build_macos_native.sh
|
||||
name: build-for-mac
|
||||
|
||||
- run: ./bintray_nightly_upload.sh ./build/bin/mac.zip mac
|
||||
name: upload-bintray-mac-build
|
||||
env:
|
||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
||||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
@ -5,7 +5,28 @@ on:
|
||||
- cron: '1 1 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
outputs:
|
||||
status: ${{ steps.check.outputs.status }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
name: checkout
|
||||
|
||||
- run: ./bintray_nightly_check.sh; echo "::set-output name=status::$?"
|
||||
name: nightly-check
|
||||
id: check
|
||||
shell: bash {0}
|
||||
env:
|
||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
||||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
||||
|
||||
build-docker:
|
||||
|
||||
needs: check
|
||||
if: needs.check.outputs.status == 0
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -18,12 +39,6 @@ jobs:
|
||||
- uses: actions/checkout@master
|
||||
name: checkout
|
||||
|
||||
- run: ./bintray_nightly_check.sh
|
||||
name: nightly-check
|
||||
env:
|
||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
||||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
||||
|
||||
- run: rm -f bin/.gitkeep
|
||||
name: clean-bin-folder
|
||||
|
||||
@ -44,3 +59,25 @@ jobs:
|
||||
OBS_USER: ${{ secrets.OBS_USER }}
|
||||
OBS_SECRET: ${{ secrets.OBS_SECRET }}
|
||||
|
||||
build-macos:
|
||||
|
||||
needs: check
|
||||
if: needs.check.outputs.status == 0
|
||||
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
name: checkout
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v2
|
||||
|
||||
- run: ./build_macos_native.sh
|
||||
name: build-for-mac
|
||||
|
||||
- run: ./bintray_nightly_upload.sh ./build/bin/mac.zip mac
|
||||
name: upload-bintray-mac-build
|
||||
env:
|
||||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
|
||||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
|
Loading…
x
Reference in New Issue
Block a user