Skip to content

Commit c42a885

Browse files
authored
Fixing a few issues with git workflows
1 parent ad4adb8 commit c42a885

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

.github/workflows/swift.yml

+26-27
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,34 @@ name: Swift
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ main ]
88

99
jobs:
1010
cancel_previous:
11-
permissions: write-all
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: styfle/[email protected]
15-
with:
16-
workflow_id: ${{ github.event.workflow.id }}
17-
11+
permissions: write-all
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: styfle/[email protected]
15+
with:
16+
workflow_id: ${{ github.event.workflow.id }}
17+
1818
build_and_test_examples:
19-
needs: cancel_previous
20-
runs-on: macos-11
21-
steps:
22-
- uses: maxim-lobanov/setup-xcode@v1
23-
with:
24-
xcode-version: '13.0'
25-
- uses: actions/checkout@v2
26-
- uses: actions/cache@v2
27-
with:
28-
path: /Users/runner/Library/Developer/Xcode/DerivedData
29-
key: ${{ runner.os }}-spm-examples-${{ hashFiles('**/Package.resolved') }}
30-
restore-keys: |
31-
${{ runner.os }}-spm-examples
32-
- name: build for ios simulator
33-
run: |
34-
cd Example/BasicExample
35-
xcodebuild -workspace "BasicExample.xcworkspace" -scheme "BasicExample" -sdk iphonesimulator
36-
19+
needs: cancel_previous
20+
runs-on: macos-11
21+
steps:
22+
- uses: maxim-lobanov/setup-xcode@v1
23+
with:
24+
xcode-version: '13.2.1'
25+
- uses: actions/checkout@v2
26+
- uses: actions/cache@v2
27+
with:
28+
path: /Users/runner/Library/Developer/Xcode/DerivedData
29+
key: ${{ runner.os }}-spm-examples-${{ hashFiles('**/Package.resolved') }}
30+
restore-keys: |
31+
${{ runner.os }}-spm-examples
32+
- name: build for ios simulator
33+
run: |
34+
cd Example/BasicExample
35+
xcodebuild -project "BasicExample.xcodeproj" -scheme "BasicExample" -sdk iphonesimulator

0 commit comments

Comments
 (0)