improved settings names #232
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: Nightly | |
on: | |
workflow_dispatch: | |
inputs: | |
build-dependent: | |
description: 'Should build dependent repositories?' | |
required: false | |
default: false | |
push: | |
branches: | |
- 'master' | |
workflow_call: | |
secrets: | |
WORKFLOW_ACCESS_TOKEN: | |
required: true | |
env: | |
REPOSITORY_NAME: '${{ github.event.repository.name }}' | |
PROJECT_NAME: 'openponk-${{ github.event.repository.name }}' | |
VERSION: 'nightly' | |
cache-name: zip-cache | |
RUN_ID: ${{ github.run_id }} | |
jobs: | |
test-linux: | |
runs-on: ubuntu-latest | |
env: | |
PLATFORM: linux | |
name: 'Test Linux' | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Load SmalltalkCI environment | |
uses: hpi-swa/[email protected] | |
id: smalltalkci | |
with: | |
smalltalk-image: Pharo64-11 | |
- name: Prepare image and test | |
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | |
shell: bash | |
timeout-minutes: 12 | |
test-win: | |
runs-on: windows-latest | |
env: | |
PLATFORM: win | |
name: 'Test Windows' | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Load SmalltalkCI environment | |
uses: hpi-swa/[email protected] | |
id: smalltalkci | |
with: | |
smalltalk-image: Pharo64-11 | |
- name: Prepare image and test | |
run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }} | |
shell: bash | |
timeout-minutes: 20 | |
create-dependent-matrix: | |
runs-on: ubuntu-latest | |
name: 'Find dependent repositories' | |
if: ${{ github.event_name == 'push' || contains(github.event.inputs.build-dependent || false, 'true') }} | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Check list of repositories exists | |
id: check-file | |
run: test -f ./.github/dependent-repositories.txt || exit 1 | |
- name: Create dependent build matrix | |
id: set-matrix | |
run: echo "::set-output name=matrix::`cat ./.github/dependent-repositories.txt | tr -d " \t\n\r"`" | |
build-dependent: | |
needs: [test-linux, test-win, create-dependent-matrix] | |
runs-on: ubuntu-latest | |
name: 'Build dependent' | |
if: ${{ contains(needs.create-dependent-matrix.outputs.matrix, '/') }} | |
strategy: | |
matrix: ${{fromJson(needs.create-dependent-matrix.outputs.matrix)}} | |
steps: | |
- name: Start ${{ matrix.repository }} build | |
uses: benc-uk/[email protected] | |
with: | |
workflow: Nightly | |
repo: ${{ matrix.repository }} | |
ref: ${{ matrix.branch }} | |
token: ${{ secrets.WORKFLOW_ACCESS_TOKEN }} | |
inputs: '{ "build-dependent": "${{ matrix.build-dependent }}" }' |