Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - try to make mise work #645

Merged
merged 3 commits into from
Feb 7, 2024
Merged
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
5 changes: 3 additions & 2 deletions .github/workflows/ci-fastlane-release_beta_internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
with:
fetch-depth: 1 # shallow clone

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: bundle install
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-linter-swiftformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
fetch-depth: 0 # Fetch all history for all branches and tags
lfs: true

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: Run swiftformat
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-linter-swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
fetch-depth: 0 # Fetch all history for all branches and tags
lfs: true

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: Run swiftlint
run: |
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/ci-system-upgrade_tools_and_clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ name: System - Upgrade tools & clean
on:
pull_request:
types: [labeled]
push:
paths:
- .github/workflows/ci-system-upgrade_tools_and_clean.yml
- .mise.toml
- Gemfile*
schedule:
# Runs at 3:00 UTC every day
- cron: "0 3 * * *"
Expand All @@ -19,7 +24,8 @@ jobs:
upgrade_tools:
if: |
(github.event_name == 'pull_request' && github.event.label.name == 'ci:upgrade_tools') ||
contains(github.event_name, 'schedule')
contains(github.event_name, 'schedule') ||
contains(github.event_name, 'push')
name: Upgrade tools
runs-on: [self-hosted, iOS]

Expand All @@ -29,11 +35,15 @@ jobs:
with:
fetch-depth: 1 # shallow clone

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: Tools' versions before
run: |
which mise
mise --version

which xcodebuild
xcodebuild -version

Expand All @@ -58,6 +68,11 @@ jobs:
brew upgrade
brew cleanup -s --prune=all

- name: Install mise tools
run: |
mise uninstall --all
mise install

- name: Upgrade bundle
run: |
bundle update --bundler
Expand All @@ -72,6 +87,9 @@ jobs:

- name: Tools' versions after
run: |
which mise
mise --version

which xcodebuild
xcodebuild -version

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-tuist-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
fetch-depth: 1 # shallow clone
lfs: true

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: tuist fetch
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-tuist-unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
fetch-depth: 1 # shallow clone
lfs: true

- name: Install mise tools
uses: jdx/mise-action@v2
- name: Setup mise
run: |
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH

- name: tuist fetch
run: |
Expand Down
Loading