Migrate to new arch checks and verify installations on x64 Mac #17
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: JDK19 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/jdk19.yml' | |
- 'Casks/zulu-jdk19.rb' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/jdk19.yml' | |
- 'Casks/zulu-jdk19.rb' | |
jobs: | |
check: | |
name: Check | |
strategy: | |
matrix: | |
os: | |
# macos-latest is based on arm64. | |
- macos-latest | |
# macos-12 is based on x64. | |
- macos-12 | |
runs-on: ${{ matrix.os }} | |
env: | |
HOMEBREW_COLOR: 1 | |
HOMEBREW_DEVELOPER: 1 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: brew pull & reset & tap | |
run: | | |
brew update-reset "$(brew --repository)" | |
brew update-reset "$(brew --repository homebrew/cask)" | |
mkdir -p $(brew --repo)/Library/Taps/mdogan | |
ln -s $GITHUB_WORKSPACE $(brew --repo)/Library/Taps/mdogan/homebrew-zulu | |
- name: install jdk19 | |
run: brew install zulu-jdk19 | |
- name: uninstall jdk19 | |
run: brew uninstall zulu-jdk19 |