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

build: add test for macOS, Windows #33

Merged
merged 2 commits into from
Apr 24, 2024
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
31 changes: 28 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
build-linux:
name: Build [Linux]
runs-on: ubuntu-latest
env:
RUSTC_WRAPPER: sccache
CCACHE: sccache
SCCACHE_GHA_ENABLED: 'true'
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -43,8 +47,12 @@ jobs:
libx11-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
libxmu-dev libxmu6 libegl1-mesa-dev llvm-dev m4 xorg-dev

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Build
run: cargo build --release
run: |
cargo build --release

- name: Tar Binary
if: ${{ github.event_name == 'schedule' }}
Expand All @@ -60,6 +68,9 @@ jobs:
build-windows:
name: Build [Windows]
runs-on: windows-latest
env:
CCACHE: sccache
SCCACHE_GHA_ENABLED: 'true'
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -73,8 +84,13 @@ jobs:
- name: Install dependencies
run: scoop install git python llvm cmake curl

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Build
run: cargo build --release
run: |
cargo build --release
cargo test --release

- name: Tar Binary
if: ${{ github.event_name == 'schedule' }}
Expand All @@ -96,6 +112,10 @@ jobs:
- { target: aarch64-apple-darwin, os: macos-14 }
- { target: x86_64-apple-darwin, os: macos-13 }
runs-on: ${{ matrix.platform.os }}
env:
RUSTC_WRAPPER: sccache
CCACHE: sccache
SCCACHE_GHA_ENABLED: 'true'
steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -106,8 +126,13 @@ jobs:
- name: Install dependencies
run: brew install cmake pkg-config

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Build
run: cargo build --release
run: |
cargo build --release
cargo test --release

- name: Tar Binary
if: ${{ github.event_name == 'schedule' }}
Expand Down
Loading