Skip to content

Commit

Permalink
Declare VM_IMAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Oct 24, 2024
1 parent 9f242f0 commit 9afc8f9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,22 @@
name: CI
on: [push]
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
VM_NAME: sequoia-for-pillarbox
VM_IMAGE: ghcr.io/cirruslabs/macos-sequoia-base:latest
jobs:
install-tools:
runs-on:
labels: [tart, macos]
steps:
- name: Clone macos-ci-setup repository
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
run: |
rm -rf ~/macos-ci-setup
git clone -b add-scripts https://[email protected]/SRGSSR/macos-ci-setup.git ~/macos-ci-setup
- name: Install tools
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
run: |
cd ~/macos-ci-setup
./create-vm-for-project.sh $VM_NAME ghcr.io/cirruslabs/macos-sonoma-xcode:latest
./create-vm-for-project.sh $VM_NAME $VM_IMAGE
./clone-repo-in-vm.sh "https://[email protected]/SRGSSR/fake-and-temporary-pa-for-runners.git" $VM_NAME
./brew-fetch-and-sync.sh $VM_NAME mint shellcheck markdownlint-cli yamllint ffmpeg
./run-vm-shell-command.sh $VM_NAME "brew install mint shellcheck markdownlint-cli yamllint ffmpeg"
Expand All @@ -37,8 +34,6 @@ jobs:
labels: [tart, macos]
steps:
- name: Setup project
env:
MACOS_CI_SETUP_TOKEN: ${{ secrets.MACOS_CI_SETUP_TOKEN }}
run: |
cd ~/macos-ci-setup
./run-vm-shell-command.sh $VM_NAME "cd ~/_repo && rm -rf Configuration"
Expand Down

0 comments on commit 9afc8f9

Please sign in to comment.