Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ name: CI

on:
push:
branches: [ master ]
branches: [ "master" ]
pull_request:
branches: [ master ]
branches: [ "*" ]

env:
CACHED_DEPENDENCY_PATHS: ${{ github.workspace }}/Tuist/Dependencies

jobs:
prepare-dependency:
name: ⚙️ prepare for CI
runs-on: macos-latest
runs-on: macos-14

steps:
- uses: actions/checkout@v2
- uses: jdx/mise-action@v2
with:
xcode-version: 15.2

- name: Install Tuist
run: curl -Ls https://install.tuist.io | bash
run: mise install tuist

- name: Compute dependency cache key
id: compute_hash
run: echo "hash=${{ hashFiles('Tuist/Dependencies.swift') }}" >> $GITHUB_OUTPUT
run: echo "hash=${{ hashFiles('Tuist/Package.swift') }}" >> $GITHUB_OUTPUT

- name: Check dependency cache
uses: actions/cache@v3
Expand All @@ -33,7 +36,7 @@ jobs:

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit == ''
run: tuist fetch
run: tuist install
outputs:
dependency_cache_key: ${{ steps.compute_hash.outputs.hash }}

Expand All @@ -43,16 +46,17 @@ jobs:
ENCRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist.gpg' }}
DECRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist' }}
GPLIST_PW: ${{ secrets.GOOGLE_SERVICE_ENCRYPTO_PW }}
runs-on: macos-latest
runs-on: macos-14
needs: prepare-dependency

steps:
- uses: actions/checkout@v2
with:
xcode-version: latest
xcode-version: 15.2
- uses: jdx/mise-action@v2

- name: install tuist
run: curl -Ls https://install.tuist.io | bash
run: mise install tuist

- name: configure GoogleService-Info.plist
run: |
Expand All @@ -67,7 +71,7 @@ jobs:

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: tuist fetch
run: tuist install

- name: build tuist
run: TUIST_CI=1 tuist build
Expand All @@ -78,16 +82,17 @@ jobs:
ENCRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist.gpg' }}
DECRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist' }}
GPLIST_PW: ${{ secrets.GOOGLE_SERVICE_ENCRYPTO_PW }}
runs-on: macos-latest
runs-on: macos-14
needs: prepare-dependency

steps:
- uses: actions/checkout@v2
- uses: jdx/mise-action@v2
with:
xcode-version: latest
xcode-version: 15.2

- name: install tuist
run: curl -Ls https://install.tuist.io | bash
run: mise install tuist

- name: configure GoogleService-Info.plist
run: |
Expand All @@ -102,8 +107,7 @@ jobs:

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: tuist fetch
run: tuist install

- name: test tuist
run: TUIST_CI=1 tuist test

run: TUIST_CI=1 tuist test --no-selective-testing
17 changes: 9 additions & 8 deletions .github/workflows/CachingTuistDependencies.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Caching with Tuist Dependencies

on:
pull_request:
branches:
- master
push:
branches:
- master
branches: [ "master" ]
pull_request:
branches: [ "*" ]

env:
CACHED_DEPENDENCY_PATHS: ${{ github.workspace }}/Tuist/Dependencies

jobs:
caching-dependencies:
name: 🧩 Caching Dependencies
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: jdx/mise-action@v2
with:
xcode-version: 15.2

- name: Compute dependency cache key
id: compute_hash
Expand All @@ -31,11 +32,11 @@ jobs:

- name: Install tuist
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: curl -Ls https://install.tuist.io | bash
run: mise install tuist

- name: Install dependencies
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: tuist fetch
run: tuist install

outputs:
dependency_cache_key: ${{ steps.compute_hash.outputs.hash }}
Expand Down
2 changes: 2 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
tuist = "4.8.1"
3 changes: 2 additions & 1 deletion .package.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"originHash" : "600490cc27540b781885deee6ae54a1d2ad2d7effa7caed9cb01ecba8cb4ac6d",
"pins" : [
{
"identity" : "abseil-cpp-swiftpm",
Expand Down Expand Up @@ -136,5 +137,5 @@
}
}
],
"version" : 2
"version" : 3
}
1 change: 0 additions & 1 deletion .tuist-version

This file was deleted.

Loading