Skip to content

Commit

Permalink
There are a lot of brew failure with macos.
Browse files Browse the repository at this point in the history
According to
actions/runner-images#8642
actions/runner-images#8649

the macos runners are evolving leading to error of VM

It seems there is no problem with macos-11
  • Loading branch information
tbaudier committed Dec 20, 2023
1 parent 2f26656 commit 619b150
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-11, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11']
exclude:
- os: macos-latest
- os: macos-11
python-version: '3.11'

env:
Expand All @@ -36,7 +36,7 @@ jobs:
if [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then
export GIT_SSL_NO_VERIFY=1
git submodule update --init --recursive
elif [[ ${{ matrix.os }} == "macos-latest" ]]; then
elif [[ ${{ matrix.os }} == "macos-11" ]]; then
export GIT_SSL_NO_VERIFY=1
git submodule update --init --recursive
else
Expand All @@ -56,7 +56,7 @@ jobs:
varOS=`cat /etc/os-release | grep "VERSION=" | grep -oP '(?<=\").*?(?=\")'`
varOS=($varOS)
echo "release=${varOS[0]}" >> $GITHUB_OUTPUT
elif [[ ${{ matrix.os }} == "macos-latest" ]]; then
elif [[ ${{ matrix.os }} == "macos-11" ]]; then
varOS=`sw_vers | grep "ProductVersion:"`
varOS="${varOS#*:}"
echo "release=${varOS:1}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -106,17 +106,17 @@ jobs:
mv dist_opengate/* dist/
fi
- uses: conda-incubator/setup-miniconda@v2
if: (matrix.os == 'macos-latest') || (matrix.os == 'windows-latest')
if: (matrix.os == 'macos-11') || (matrix.os == 'windows-latest')
with:
auto-update-conda: true
activate-environment: opengate_core
python-version: ${{ matrix.python-version }}
- name: Set up Homebrew
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-11'
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Create opengate_core Wheel Mac
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-11'
shell: bash -l {0}
run: |
brew update
Expand Down

0 comments on commit 619b150

Please sign in to comment.