Skip to content

Commit

Permalink
[test] osx latest
Browse files Browse the repository at this point in the history
  • Loading branch information
MadSchemas committed May 28, 2024
1 parent 2e58988 commit 6317abb
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build:
strategy:
matrix:
os: [macos-13]
os: [macos-latest]
fail-fast: false
runs-on: ${{matrix.os}}
env:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
make -j4
STRIP=/bin/true cpack
- name: 'C++ tests'
if: ${{ matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'macos-latest' }}
run: |
echo "Running C++ directly in this job due to Action's problem with artifacts transition for macos-11 and macos-12 runners"
cd build
Expand All @@ -60,7 +60,7 @@ jobs:
test:
strategy:
matrix:
os: [macos-13]
os: [macos-latest]
test: ['GO']
fail-fast: false
runs-on: ${{matrix.os}}
Expand All @@ -72,39 +72,41 @@ jobs:
TEST: ${{matrix.test}}
steps:
- name: Checkout repository
if: ${{ matrix.os != 'macos-13' || matrix.test == 'GO' }}
if: ${{ matrix.os != 'macos-latest' || matrix.test == 'GO' }}
uses: actions/checkout@v4
- name: Installing Go
uses: actions/setup-go@v5
if: ${{ matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'macos-latest' }}
with:
go-version: '1.22.x'
check-latest: true
- name: Download ${{matrix.os}}${{matrix.sanitizer}} Artifacts
if: ${{ matrix.os != 'macos-13' || matrix.test == 'GO' }}
if: ${{ matrix.os != 'macos-latest' || matrix.test == 'GO' }}
uses: actions/download-artifact@v4
with:
name: ${{matrix.os}}${{matrix.sanitizer}}
- name: 'Untar Artifacts'
if: ${{ matrix.os != 'macos-13' || matrix.test == 'GO' }}
if: ${{ matrix.os != 'macos-latest' || matrix.test == 'GO' }}
run: tar -xvf artifacts.tar
- name: Prepare Environment
if: ${{ matrix.os != 'macos-13' || matrix.test == 'GO' }}
if: ${{ matrix.os != 'macos-latest' || matrix.test == 'GO' }}
env:
OS: ${{matrix.os}}
run: |
if [[ $OS == ubuntu* ]]; then
sudo ./dependencies.sh
else
./dependencies.sh
ls -lah /opt/homebrew/lib/libleveldb.a
echo $PATH
fi
if [[ $TEST == 'GO' ]]; then
go mod download
elif [[ $OS == ubuntu* ]]; then
./.github/workflows/install_gtest_parallel.sh
fi
- name: Tests
if: ${{ matrix.os != 'macos-13' || matrix.test == 'GO' }}
if: ${{ matrix.os != 'macos-latest' || matrix.test == 'GO' }}
run: |
if [[ $TEST == 'GO' ]]; then
if [[ -z "${{matrix.sanitizer}}" ]]; then
Expand Down

0 comments on commit 6317abb

Please sign in to comment.