Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the name of the GitHub Actions jobs and make sure to test all static/shared combinations #216

Merged
merged 2 commits into from
Aug 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ on:


jobs:
linux-ci-static:
linux-ci-shared:
name: stable, Linux, shared library
runs-on: ubuntu-latest
env:
HARFBUZZ_SYS_NO_PKG_CONFIG: 1
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -47,7 +45,7 @@ jobs:
env:
RUST_BACKTRACE: 1

linux-ci-shared:
linux-ci-static:
name: stable, Linux, static linking, no pkg-config
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -76,6 +74,35 @@ jobs:
name: stable, macOS, shared library
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: install harfbuzz from homebrew
run: |
brew install harfbuzz

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt

- name: Cargo fmt
run: cargo fmt --all -- --check

- name: Cargo build
run: cargo build --workspace

- name: Cargo test
run: cargo test --workspace
env:
RUST_BACKTRACE: 1

mac-ci-static:
name: stable, macOS, static library
runs-on: macos-latest
env:
HARFBUZZ_SYS_NO_PKG_CONFIG: 1

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -120,6 +147,7 @@ jobs:
- "linux-ci-static"
- "linux-ci-shared"
- "mac-ci-shared"
- "mac-ci-static"
- "windows-ci"

steps:
Expand Down