π·ββοΈ Try build in PR workflow (#146) #239
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 | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
jobs: | |
carthage: | |
name: Carthage | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: AckeeCZ/[email protected] | |
- name: Build | |
run: carthage build --no-skip-current --cache-builds --use-xcframeworks | |
- uses: actions/cache@v3 | |
with: | |
path: Carthage | |
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-carthage- | |
spm: | |
name: SPM | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: AckeeCZ/[email protected] | |
- name: Build | |
run: swift build -c release | |
- uses: actions/cache@v3 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- |