Skip to content

Commit

Permalink
Migrate to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 24, 2019
1 parent e69d81e commit d7e9dc6
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 181 deletions.
148 changes: 148 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: CI
on: [push, pull_request]

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
thing:
- stable
- beta
- nightly
- macos-x86_64
- arm-android
- arm64-android
- i686-android
- x86_64-android
- i686-linux
- arm-linux
- aarch64-linux
- x86_64-musl
- x86_64-mingw
- asmjs
- i686-msvc
- i686-msvc-static
- x86_64-msvc
- x86_64-msvc-static
include:
- thing: stable
target: x86_64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- thing: beta
target: x86_64-unknown-linux-gnu
rust: beta
os: ubuntu-latest
- thing: nightly
target: x86_64-unknown-linux-gnu
rust: nightly
os: ubuntu-latest
- thing: macos-x86_64
target: x86_64-apple-darwin
rust: stable
os: macos-latest
- thing: arm-android
target: arm-linux-androideabi
rust: stable
os: ubuntu-latest
- thing: arm64-android
target: aarch64-linux-android
rust: stable
os: ubuntu-latest
- thing: i686-android
target: i686-linux-android
rust: stable
os: ubuntu-latest
- thing: x86_64-android
target: x86_64-linux-android
rust: stable
os: ubuntu-latest
- thing: i686-linux
target: i686-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- thing: arm-linux
target: arm-unknown-linux-gnueabi
rust: stable
os: ubuntu-latest
- thing: aarch64-linux
target: aarch64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- thing: x86_64-musl
target: x86_64-unknown-linux-musl
rust: stable
os: ubuntu-latest
- thing: x86_64-mingw
target: x86_64-pc-windows-gnu
rust: stable
os: ubuntu-latest
- thing: asmjs
target: asmjs-unknown-emscripten
rust: stable
os: ubuntu-latest
- thing: i686-msvc
target: i686-pc-windows-msvc
rust: stable-i686-msvc
os: windows-2016
- thing: i686-msvc-static
target: i686-pc-windows-msvc
rust: stable-i686-msvc
os: windows-2016
crt_static: true
- thing: x86_64-msvc
target: x86_64-pc-windows-msvc
rust: stable-x86_64-msvc
os: windows-latest
- thing: x86_64-msvc-static
target: x86_64-pc-windows-msvc
rust: stable-x86_64-msvc
os: windows-latest
crt_static: true

steps:
- uses: actions/checkout@master
with:
submodules: true
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
if: matrix.os != 'macos-latest'
- name: Install Rust (macos)
run: |
curl https://sh.rustup.rs | sh -s -- -y
echo "##[add-path]$HOME/.cargo/bin"
if: matrix.os == 'macos-latest'
- run: rustup target add ${{ matrix.target }}
- name: Set crt-static
if: matrix.crt_static == 'yes'
run: echo "##[set-env name=RUSTFLAGS]-Ctarget-feature=+crt-static"
shell: bash
- name: Use strawberry perl
if: startsWith(matrix.os, 'windows')
run: echo "##[add-path]C:/Strawberry/perl/bin"
shell: bash
- run: |
set -e
cargo generate-lockfile
./ci/run-docker.sh ${{ matrix.target }}
if: "!startsWith(matrix.os, 'windows')"
name: Run tests (not Windows)
- run: |
set -e
cargo test --manifest-path testcrate/Cargo.toml --target ${{ matrix.target }}
cargo test --manifest-path testcrate/Cargo.toml --target ${{ matrix.target }} --release
cargo run --release --target ${{ matrix.target }} --manifest-path testcrate/Cargo.toml --features package
if: startsWith(matrix.os, 'windows')
name: Run tests (Windows)
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt -- --check
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This crate contains the logic to build OpenSSL and is intended to be consumed by
the `openssl-sys` crate. You likely in theory aren't interacting with this too
much!


# License

This project is licensed under either of
Expand Down
77 changes: 0 additions & 77 deletions azure-pipelines.yml

This file was deleted.

25 changes: 0 additions & 25 deletions ci/azure-install-rust.yml

This file was deleted.

33 changes: 0 additions & 33 deletions ci/azure-steps.yml

This file was deleted.

Loading

0 comments on commit d7e9dc6

Please sign in to comment.