All #2
This file contains hidden or 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: All | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Release tag' | |
| required: true | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| board: | |
| - ambassador | |
| - banon | |
| - brask | |
| - brya | |
| - clapper | |
| - coral | |
| - corsola | |
| - cyan | |
| - dedede | |
| - edgar | |
| - elm | |
| - enguarde | |
| - fizz | |
| - glimmer | |
| - grunt | |
| - hana | |
| - hatch | |
| - jacuzzi | |
| - kalista | |
| - kefka | |
| - kukui | |
| - lulu | |
| - nami | |
| - nissa | |
| - octopus | |
| - orco | |
| - puff | |
| - pyro | |
| - reef | |
| - reks | |
| - relm | |
| - sand | |
| - sentry | |
| - snappy | |
| - stout | |
| - strongbad | |
| - tidus | |
| - trogdor | |
| - ultima | |
| - volteer | |
| - zork | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Build KVS | |
| env: | |
| board: ${{ matrix.board }} | |
| run: | | |
| set -e | |
| chmod +x ./shim-builder/builder.sh | |
| echo "Downloading file from https://dl.cros.download/files/${board}/${board}.zip..." | |
| wget -q "https://dl.cros.download/files/${board}/${board}.zip" -O "./${board}.zip" || exit 1 | |
| unzip "./${board}.zip" | |
| shim=$(unzip -Z1 "./${board}.zip") | |
| rm ./${board}.zip | |
| sudo ./shim-builder/builder.sh "$shim" | |
| - name: Upload built shim | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: KVS ${{ inputs.tag }} | |
| tag_name: ${{ inputs.tag }} | |
| files: ./${{ matrix.board }}.bin | |
| overwrite_files: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |