Skip to content

Commit

Permalink
ci: add macos & windows runners for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Jul 29, 2024
1 parent fe9de51 commit 2f43432
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .github/docker.override.conf

This file was deleted.

36 changes: 25 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration
name: CI

on:
pull_request:
Expand Down Expand Up @@ -35,29 +35,43 @@ jobs:
run: cargo hack build --each-feature --keep-going

test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- nightly
os:
- name: Ubuntu
version: ubuntu-latest
- name: Windows
version: windows-latest
- name: MacOS
version: macos-13

name: Test - ${{ matrix.os.name }} (${{ matrix.toolchain }})
runs-on: ${{ matrix.os.version }}

steps:
- name: Checkout sources
uses: actions/checkout@v4
# Install NASM on Windows (because of aws-lc-rs requirements)
- uses: ilammy/setup-nasm@v1
if: ${{ matrix.os.name == 'Windows' }}
- name: Setup Docker
if: ${{ matrix.os.name == 'Windows' || runner.os == 'MacOS' }}
uses: crazy-max/ghaction-setup-docker@v3
with:
daemon-config: |
{
"experimental": true
}
set-host: true
- uses: Swatinem/rust-cache@v2
- name: Setup Rust
- name: Setup Rust - ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Enable Docker Remote API on Localhost
shell: bash
run: |
sudo mkdir -p /etc/systemd/system/docker.service.d/
sudo cp ./.github/docker.override.conf /etc/systemd/system/docker.service.d/override.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
Expand Down

0 comments on commit 2f43432

Please sign in to comment.