fix (status) : Log info in CRC status for OKD preset (#3626) #3062
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
name: Build macOS installer | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: {} | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macOS-13 | |
- macOS-12 | |
go: | |
- '1.22' | |
steps: | |
# Enable tmate debugging of manually-triggered workflows if the input option was provided | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
with: | |
limit-access-to-actor: true | |
timeout-minutes: 30 | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build macOS installer | |
run: make NO_CODESIGN=1 out/macos-universal/crc-macos-installer.pkg | |
- name: Upload macOS installer artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macOS Installer (${{ matrix.os }}) | |
path: "./out/macos-universal/crc-macos-installer.pkg" | |
- name: Install crc pkg | |
run: sudo installer -pkg out/macos-universal/crc-macos-installer.pkg -target / | |
- name: Set microshift preset as part of config | |
run: crc config set preset microshift | |
- name: Run crc setup command | |
run: crc setup |