Skip to content

Commit 3eb7ad9

Browse files
committed
chore: switch to an XcodeGen project file
Change-Id: I753a7652cdc730157ae7f8bc036338bae5e6b54b Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 06b4c16 commit 3eb7ad9

File tree

16 files changed

+911
-1967
lines changed

16 files changed

+911
-1967
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Setup Nix devshell"
2+
description: "This action sets up a nix devshell environment"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Setup Nix
7+
uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16
8+
9+
- name: Setup GHA Nix cache
10+
uses: DeterminateSystems/magic-nix-cache-action@6221693898146dc97e38ad0e013488a16477a4c4 # v9
11+
12+
- name: Add Xcode to Nix store
13+
shell: bash
14+
run: |
15+
cd /Applications/
16+
ls
17+
rm Xcode.app
18+
mv Xcode_16.2.0.app Xcode.app
19+
nix-store --add-fixed --recursive sha256 Xcode.app
20+
21+
- name: Enter devshell
22+
uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1.2.1

.github/workflows/ci.yml

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,67 @@ on:
1010
paths-ignore:
1111
- "README.md"
1212

13-
1413
permissions:
1514
contents: read
1615

1716
jobs:
1817
test:
1918
name: test
20-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
19+
# runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
20+
runs-on: "macos-latest"
2121
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24+
with:
25+
egress-policy: audit
26+
2227
- name: Checkout
2328
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2429
with:
2530
fetch-depth: 1
26-
- name: Switch XCode Version
27-
uses: maxim-lobanov/setup-xcode@v1
28-
with:
29-
xcode-version: '16.0.0'
30-
- run: |
31-
make test
31+
32+
- name: Setup Nix
33+
uses: ./.github/actions/nix-devshell
34+
35+
- run: make
36+
37+
- run: make test
38+
3239
format:
3340
name: fmt
34-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
41+
# runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
42+
runs-on: "macos-latest"
3543
steps:
44+
- name: Harden Runner
45+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
46+
with:
47+
egress-policy: audit
48+
3649
- name: Checkout
3750
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3851
with:
3952
fetch-depth: 1
40-
- run: |
41-
make fmt
53+
54+
- name: Setup Nix
55+
uses: ./.github/actions/nix-devshell
56+
57+
- run: make fmt
4258
lint:
4359
name: lint
44-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
60+
# runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
61+
runs-on: "macos-latest"
4562
steps:
63+
- name: Harden Runner
64+
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
65+
with:
66+
egress-policy: audit
67+
4668
- name: Checkout
4769
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4870
with:
4971
fetch-depth: 1
50-
- name: Install Swiftlint
51-
run: |
52-
brew install swiftlint
53-
- run: |
54-
make lint
72+
73+
- name: Setup Nix
74+
uses: ./.github/actions/nix-devshell
75+
76+
- run: make lint

0 commit comments

Comments
 (0)