-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
489: Migrate CI to GitHub Actions r=jeehoonkang a=taiki-e Replaces #488 Co-authored-by: Taiki Endo <te316e89@gmail.com>
- Loading branch information
Showing
9 changed files
with
109 additions
and
124 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,68 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- staging | ||
- trying | ||
|
||
jobs: | ||
# Test crates on their minimum Rust versions and nightly Rust. | ||
test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
env: | ||
RUST_VERSION: ${{ matrix.rust }} | ||
strategy: | ||
matrix: | ||
crates: | ||
- crossbeam | ||
- crossbeam-channel | ||
- crossbeam-deque | ||
- crossbeam-epoch | ||
- crossbeam-queue | ||
- crossbeam-skiplist | ||
- crossbeam-utils | ||
rust: | ||
- 1.28.0 | ||
- nightly | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} | ||
- name: Add targets | ||
if: matrix.rust == 'nightly' | ||
run: | | ||
rustup target add thumbv7m-none-eabi | ||
rustup target add thumbv6m-none-eabi | ||
# cfg-if 0.1.10 requires Rust 1.31+ so downgrade it. | ||
- name: Downgrade dependencies | ||
if: matrix.rust == '1.28.0' | ||
run: | | ||
cargo generate-lockfile | ||
cargo update -p cfg-if --precise 0.1.9 | ||
- name: Test | ||
run: ./ci/${{ matrix.crates }}.sh | ||
|
||
# Check for duplicate dependencies. | ||
dependencies: | ||
name: dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update nightly && rustup default nightly | ||
- name: dependency tree check | ||
run: ./ci/dependencies.sh | ||
|
||
# Check formatting. | ||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install Rust | ||
run: rustup update stable && rustup default stable | ||
- name: rustfmt | ||
run: ./ci/rustfmt.sh |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,18 @@ | ||
status = ["continuous-integration/travis-ci/push"] | ||
status = [ | ||
"test (crossbeam, 1.28.0)", | ||
"test (crossbeam, nightly)", | ||
"test (crossbeam-channel, 1.28.0)", | ||
"test (crossbeam-channel, nightly)", | ||
"test (crossbeam-deque, 1.28.0)", | ||
"test (crossbeam-deque, nightly)", | ||
"test (crossbeam-epoch, 1.28.0)", | ||
"test (crossbeam-epoch, nightly)", | ||
"test (crossbeam-queue, 1.28.0)", | ||
"test (crossbeam-queue, nightly)", | ||
"test (crossbeam-skiplist, 1.28.0)", | ||
"test (crossbeam-skiplist, nightly)", | ||
"test (crossbeam-utils, 1.28.0)", | ||
"test (crossbeam-utils, nightly)", | ||
"dependencies", | ||
"rustfmt", | ||
] |
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
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