Skip to content

Commit 2694539

Browse files
committed
ci: add macos & windows runners for testing
1 parent fe9de51 commit 2694539

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

.github/docker.override.conf

-5
This file was deleted.

.github/workflows/ci.yml

+22-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration
1+
name: CI
22

33
on:
44
pull_request:
@@ -35,33 +35,44 @@ jobs:
3535
run: cargo hack build --each-feature --keep-going
3636

3737
test:
38-
name: Test
39-
runs-on: ubuntu-latest
4038
strategy:
4139
fail-fast: false
4240
matrix:
4341
toolchain:
4442
- stable
4543
- nightly
44+
os:
45+
- name: Ubuntu
46+
version: ubuntu-latest
47+
- name: Windows
48+
version: windows-latest
49+
- name: MacOS
50+
version: macos-13
51+
52+
name: Test - ${{ matrix.os.name }} (${{ matrix.toolchain }})
53+
runs-on: ${{ matrix.os.version }}
54+
4655
steps:
4756
- name: Checkout sources
4857
uses: actions/checkout@v4
58+
# Install NASM on Windows (because of aws-lc-rs requirements)
59+
- uses: ilammy/setup-nasm@v1
60+
if: ${{ matrix.os.name == 'Windows' }}
61+
- name: Setup Docker (MacOS only)
62+
if: ${{ matrix.os.name == 'MacOS' }}
63+
uses: crazy-max/ghaction-setup-docker@v3
64+
with:
65+
set-host: true
4966
- uses: Swatinem/rust-cache@v2
50-
- name: Setup Rust
67+
- name: Setup Rust - ${{ matrix.toolchain }}
5168
uses: dtolnay/rust-toolchain@master
5269
with:
5370
toolchain: ${{ matrix.toolchain }}
54-
- name: Enable Docker Remote API on Localhost
55-
shell: bash
56-
run: |
57-
sudo mkdir -p /etc/systemd/system/docker.service.d/
58-
sudo cp ./.github/docker.override.conf /etc/systemd/system/docker.service.d/override.conf
59-
sudo systemctl daemon-reload
60-
sudo systemctl restart docker
6171
- uses: taiki-e/install-action@v2
6272
with:
6373
tool: cargo-hack
6474
- name: Tests
75+
timeout-minutes: 30
6576
run: cargo hack test --each-feature --clean-per-run
6677

6778
fmt:

0 commit comments

Comments
 (0)