build-and-publish-probes #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-publish-probes | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' # Runs at 00:00 UTC every day. | |
workflow_dispatch: {} | |
jobs: | |
generate-jobs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: "./pleasew -p -v2 run //build/github/generate-operating-systems -- --out_file plz-out/github/operating-systems.json" | |
- id: set-operating-systems | |
run: echo "::set-output name=operating-systems::$(<plz-out/github/operating-systems.json)" | |
outputs: | |
operating-systems: ${{ steps.set-operating-systems.outputs.operating-systems }} | |
build-and-publish-probes: | |
permissions: write-all # there's no available permission configuration for releases (https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions). | |
needs: generate-jobs | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
operating-system: ${{ fromJson(needs.generate-jobs.outputs.operating-systems) }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: ./pleasew -p -v2 run //build/github/build-and-publish-probes-for-operating-system -- ${{ matrix.operating-system }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |