forked from servo/fontsan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows build and add github CI (servo#26)
* Minor improvements to CMake code - cmake_minimum_required must be before the project call - Bump the minimum supported CMake version to something reasonable (CMake 3.13 is shipped in debian 10 buster) * Fix cargo deprecation warnings * Statically link LZ4 on windows statically link into lz4 on windows to fix executables not linking on windows. Presumably on Linux / darwin lz4 is available as a dynamic library. a more proper solution might be to first search for the library and then fallback to static linking only if CMake can't find lz4. * Reorder link-lib lines brotli is linked into woff2 is linked into ots, so the order of `-l` lines should be 1. ots 2. woff2 3. brotli Some linkers may not care about the order and also scan right to left (e.g. lld), but this is not a given. * Add missing brotli files (missing symbols on windows) add all enc files * Add github CI workflow * Update .github/workflows/test.yml --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
- Loading branch information
Showing
5 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: | ||
- "ubuntu-latest" | ||
- "macos-latest" | ||
- "windows-latest" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- name: Build | ||
run: cargo build -vv | ||
- name: Test | ||
run: cargo test -vv | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
build_result: | ||
name: Result | ||
runs-on: ubuntu-latest | ||
needs: | ||
- "build_and_test" | ||
steps: | ||
- name: Mark the job as successful | ||
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} | ||
run: exit 0 | ||
- name: Mark the job as unsuccessful | ||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} | ||
run: exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters