Skip to content

Commit

Permalink
workflows: run test benchmarks on Ubuntu and macOS
Browse files Browse the repository at this point in the history
Ensure that bench is able to run on macOS. Ref. #163.

Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Apr 22, 2024
1 parent d17a3b2 commit 41c968e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ jobs:

tests:
name: Run tests
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
benchmarks: [ 'GoSingle10wrk', 'SharpSingle10wrk', 'MixedFourNodesGoRPC50rate' ]
os: [ ubuntu-22.04, macos-14]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -81,6 +82,17 @@ jobs:
go-version-file: 'cmd/go.mod'
cache-dependency-path: cmd/go.sum

# https://github.com/actions/runner/issues/1456
# https://github.com/abiosoft/colima/issues/468
- name: Use colima as default docker host on MacOS
if: matrix.os == 'macos-14'
run: |
brew install docker
colima start
ls -la $HOME/.colima/default/docker.sock
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
ls -la /var/run/docker.sock
- name: Build Bench, GoNode and SharpNode docker images
run: make build

Expand Down

0 comments on commit 41c968e

Please sign in to comment.