Skip to content

Commit

Permalink
Add macos and windows runners to CI
Browse files Browse the repository at this point in the history
Add macos and windows runners to CI so that we can make sure that as
changes are introduced that we continue to be able to build for unix
based platforms, macos, and windows.

This relates to issue #218.

Signed-off-by: Ali Caglayan <alizter@gmail.com>

<!-- ps-id: 807cf6ba-18b3-4531-8f95-a62740a3ae96 -->
  • Loading branch information
Alizter authored and drewdeponte committed Sep 10, 2023
1 parent a6ef095 commit 91041a0
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ name: Test

jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
name: Test
env:
PROJECT_NAME_UNDERSCORE: git_ps_ci_github_actions_workflow
CARGO_INCREMENTAL: 0
# RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort
# RUSTDOCFLAGS: -Cpanic=abort
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand All @@ -35,9 +42,19 @@ jobs:
~/.cargo/registry/cache
target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
- name: Install GPGME
- name: Install GPGME (unix)
if : ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y libgpgme-dev
- name: Install GPGME (macos)
if : ${{ matrix.os == 'macos-latest' }}
run: brew update && brew install gpgme
- name: Install GPGME (windows)
if : ${{ matrix.os == 'windows-latest' }}
env:
GNUPG_VERSION: 2.3.8_20221013
run: |
sudo apt-get install -y libgpgme-dev
curl "https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-${GNUPG_VERSION}.exe" --output gnupg.exe
./gnupg.exe
- name: Run Tests
run: |
cargo test

0 comments on commit 91041a0

Please sign in to comment.