Skip to content

Commit 7bf3058

Browse files
Daniel SaidiDaniel Saidi
authored andcommitted
Update GitHub scripts
1 parent dcd66f9 commit 7bf3058

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow builds the project for all platforms.
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Build Runner
5+
6+
on:
7+
push:
8+
branches: ["main"]
9+
pull_request:
10+
branches: ["main"]
11+
12+
jobs:
13+
build:
14+
runs-on: macos-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v5
18+
- name: Setup Xcode
19+
uses: maxim-lobanov/setup-xcode@v1
20+
with:
21+
xcode-version: latest-stable
22+
- name: Build for all platforms
23+
run: bash scripts/build.sh ${{ github.event.repository.name }}

.github/workflows/docc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ jobs:
2424
environment:
2525
name: github-pages
2626
url: ${{ steps.deployment.outputs.page_url }}
27-
runs-on: macos-15
27+
runs-on: macos-latest
2828
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v3
29+
- name: Checkout Code
30+
uses: actions/checkout@v5
3131
- id: pages
3232
name: Setup Pages
3333
uses: actions/configure-pages@v4
34-
- name: Select Xcode version
34+
- name: Setup Xcode
3535
uses: maxim-lobanov/setup-xcode@v1
3636
with:
3737
xcode-version: latest-stable
3838
- name: Build DocC
3939
run: bash scripts/docc.sh ${{ github.event.repository.name }}
40-
- name: Upload artifact
40+
- name: Upload Artifact
4141
uses: actions/upload-pages-artifact@v3
4242
with:
4343
path: '.build/docs-iOS'

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow builds and tests the project.
1+
# This workflow tests the project on all platforms.
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
33

44
name: Unit Test Runner
@@ -11,11 +11,13 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: macos-15
14+
runs-on: macos-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: maxim-lobanov/setup-xcode@v1
16+
- name: Checkout Code
17+
uses: actions/checkout@v5
18+
- name: Setup Xcode
19+
uses: maxim-lobanov/setup-xcode@v1
1820
with:
1921
xcode-version: latest-stable
20-
- name: Run unit tests for all platforms
22+
- name: Run tests for all platforms
2123
run: bash scripts/test.sh ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)