Skip to content

Move all CI to GitHub Actions #53

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

Merged
merged 3 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
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
35 changes: 26 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,40 @@ name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macos-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: 1.45.0
default: true
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Run tests
if: contains(matrix.os, 'windows')
run: cargo test --verbose --features "egl build_dlls"
- name: Run test (POSIX)
if: ${{ !contains(matrix.os, 'windows') }}
run: |
cargo test --verbose
cargo test --verbose --features egl

build_result:
name: homu build finished
runs-on: ubuntu-latest
needs:
- "build"

steps:
- name: Mark the job as successful
run: exit 0
if: success()
- name: Mark the job as unsuccessful
run: exit 1
if: "!success()"
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

14 changes: 0 additions & 14 deletions appveyor.yml

This file was deleted.

4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ fn build_egl(target: &str) {
assert!(status.unwrap().success());
}

build.link_lib_modifier("-whole-archive");

// Build lib.
build.compile("EGL");
}
Expand Down Expand Up @@ -187,6 +189,8 @@ fn build_angle() {
.flag_if_supported("-arch:SSE2"); // MSVC
}

build.link_lib_modifier("-whole-archive");

build.compile("angle");

if egl {
Expand Down