chore(main): release 1.17.0 #188
Workflow file for this run
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| shell: | |
| name: shell syntax + shellcheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: bash -n on tracked shell scripts | |
| run: | | |
| set -e | |
| mapfile -d '' files < <(git ls-files -z '*.sh') | |
| for f in "${files[@]}"; do | |
| echo "→ bash -n $f" | |
| bash -n "$f" | |
| done | |
| - name: shellcheck | |
| uses: ludeeus/action-shellcheck@master | |
| with: | |
| severity: warning | |
| build-macos: | |
| name: swift build (${{ matrix.arch }}) | |
| runs-on: macos-15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [arm64, x86_64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: build StackNudge.app | |
| run: ./build.sh ${{ matrix.arch }} | |
| - name: verify executable exists + is correct arch | |
| run: | | |
| set -e | |
| bin=$(ls build/StackNudge.app/Contents/MacOS/) | |
| file "build/StackNudge.app/Contents/MacOS/$bin" | |
| file "build/StackNudge.app/Contents/MacOS/$bin" | grep -q "${{ matrix.arch }}" | |
| - name: verify Info.plist is valid | |
| run: plutil -lint panel/Info.plist | |
| test-macos: | |
| name: swift test | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: print toolchain | |
| run: | | |
| xcode-select -p | |
| swift --version | |
| - name: swift test | |
| run: swift test |