From 9c6e17d6d896284183dfb549a00cefda05c565e2 Mon Sep 17 00:00:00 2001 From: Walid Kayhal <3347810+waliid@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:28:26 +0100 Subject: [PATCH] Write in /tmp --- .github/workflows/ci.yml | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04edb177..2c5bb1fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,8 @@ env: vm_name: sequoia-for-pillarbox vm_image: ghcr.io/cirruslabs/macos-sequoia-xcode:latest branch_name: ${{ github.head_ref }} - scripts_path: ${{ github.workspace }}/../macos-ci-setup - ci_scripts_path: ${{ github.workspace }}/.github/workflows/scripts + scripts_path: "/tmp/.$vm_name/macos-ci-setup" + ci_scripts_path: "/tmp/.$vm_name/_repo/.github/workflows/scripts" repo_url: "https://${{ secrets.MACOS_CI_SETUP_TOKEN }}@github.com/\ ${{ github.repository }}.git" @@ -21,6 +21,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + path: "/tmp/.${{ env.vm_name }}/" - name: Clone macos-ci-setup repository run: | @@ -45,9 +47,6 @@ jobs: needs: install-tools runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Run test streams run: | ${{ env.ci_scripts_path }}/vm-run-test-streams.sh \ @@ -57,9 +56,6 @@ jobs: needs: install-tools runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Setup project run: | ${{ env.ci_scripts_path }}/setup-project.sh \ @@ -69,9 +65,6 @@ jobs: needs: [install-tools, setup-project] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Run the quality check run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \ @@ -81,9 +74,6 @@ jobs: needs: [install-tools, run-streams, setup-project] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Resolve SPM dependencies run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \ @@ -94,9 +84,6 @@ jobs: needs: [install-tools, resolve-spm-dependencies] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Run the iOS tests run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \ @@ -107,9 +94,6 @@ jobs: needs: [install-tools, resolve-spm-dependencies] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Run the tvOS tests run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \ @@ -120,9 +104,6 @@ jobs: needs: [install-tools, test-ios, test-tvos] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Archive the iOS demo run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \ @@ -134,9 +115,6 @@ jobs: needs: [install-tools, test-ios, test-tvos] runs-on: ${{ needs.install-tools.outputs.runner_group_label }} steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Archive the tvOS demo run: | ${{ env.ci_scripts_path }}/run-vm-shell-command.sh \