bugfix CD on remote drive for Lantastic (and some minor debug print f… #405
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: Build | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| if: contains(github.event.head_commit.message, '[skip ci]') == false | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout repository and submodules | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Package install | |
| run: ./ci_prereq.sh | |
| env: | |
| TC201_ARCHIVE_PATHNAME: ${{ vars.TC201_ARCHIVE_PATHNAME }} | |
| TC201_ARCHIVE_FILENAME: ${{ vars.TC201_ARCHIVE_FILENAME }} | |
| TC201_ARCHIVE_PASSPHRASE: ${{ secrets.TC201_ARCHIVE_PASSPHRASE }} | |
| - name: build | |
| run: ./ci_build.sh | |
| - name: test | |
| run: ./ci_test.sh | |
| - name: make snapshot name | |
| id: snapshotname | |
| run: | | |
| ( | |
| today=`date -u +%F | tr '\n' '-'` | |
| s_sha=`echo -n ${GITHUB_SHA} | cut -c1-8` | |
| printf "fname=snapshot-%s%s\n" $today $s_sha >> $GITHUB_OUTPUT | |
| ) | |
| - name: upload | |
| if: github.repository == 'FDOS/kernel' && | |
| (github.event_name == 'push' || github.event.pull_request.merged == true) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ steps.snapshotname.outputs.fname }} | |
| path: _output/*/*.??? |