ladislas/feature/ci build github hosted #5451
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Leka - iOS Monorepo | |
# Copyright APF France handicap | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Tuist - Build | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- "**/*.swift" | |
- ".mise.toml" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths: | |
- "**/*.swift" | |
- ".mise.toml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
TUIST_TURN_OFF_LINTERS: TRUE | |
TUIST_GENERATE_EXAMPLE_TARGETS: TRUE | |
TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG: FALSE | |
jobs: | |
build: | |
name: build | |
runs-on: [self-hosted, iOS] | |
strategy: | |
fail-fast: false | |
matrix: | |
TUIST_DEVELOPER_MODE: [TRUE, FALSE] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
lfs: true | |
- name: Set up mise | |
uses: jdx/mise-action@v2 | |
with: | |
version: 2024.12.4 | |
install: true | |
cache: true | |
- name: tuist version | |
run: | | |
time which tuist | |
time tuist version | |
- name: tuist install | |
run: | | |
TUIST_TURN_OFF_LINTERS=${{ env.TUIST_TURN_OFF_LINTERS }} \ | |
TUIST_GENERATE_EXAMPLE_TARGETS=${{ env.TUIST_GENERATE_EXAMPLE_TARGETS }} \ | |
TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG=${{ env.TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG }} \ | |
TUIST_DEVELOPER_MODE=${{ matrix.TUIST_DEVELOPER_MODE }} \ | |
tuist install | |
- name: tuist generate | |
run: | | |
TUIST_TURN_OFF_LINTERS=${{ env.TUIST_TURN_OFF_LINTERS }} \ | |
TUIST_GENERATE_EXAMPLE_TARGETS=${{ env.TUIST_GENERATE_EXAMPLE_TARGETS }} \ | |
TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG=${{ env.TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG }} \ | |
TUIST_DEVELOPER_MODE=${{ matrix.TUIST_DEVELOPER_MODE }} \ | |
tuist generate --no-open | |
- name: tuist build | |
run: | | |
TUIST_TURN_OFF_LINTERS=${{ env.TUIST_TURN_OFF_LINTERS }} \ | |
TUIST_GENERATE_EXAMPLE_TARGETS=${{ env.TUIST_GENERATE_EXAMPLE_TARGETS }} \ | |
TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG=${{ env.TUIST_GENERATE_MODULES_AS_FRAMEWORKS_FOR_DEBUG }} \ | |
TUIST_DEVELOPER_MODE=${{ matrix.TUIST_DEVELOPER_MODE }} \ | |
tuist build |