File tree Expand file tree Collapse file tree 4 files changed +24
-21
lines changed Expand file tree Collapse file tree 4 files changed +24
-21
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on : [push, pull_request]
3
+ env :
4
+ RUST_BACKTRACE : 1
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+ - name : Formatting
11
+ run : |
12
+ # Install extra rustup components
13
+ rustup component add rustfmt
14
+ cargo fmt --all -- --check
15
+ - name : Correct Nightly Version
16
+ # Ensure everything is run and tested with the same nightly version
17
+ run : ci/check-nightly-version.sh
18
+ - name : Test
19
+ run : |
20
+ set -euo pipefail
21
+ IFS=$'\n\t'
22
+ # Check if the code is good
23
+ cargo build --all --locked
24
+ cargo test --all --locked
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ IFS=$'\n\t'
5
5
# Extract the nightly version from all the places we declared it in
6
6
rust_toolchain=" $( cat rust-toolchain) "
7
7
rust_config=" $( cat RustConfig | sed -E ' s/^VERSION=(nightly-[0-9]{4}-[0-9]{2}-[0-9]{2})$/\1/' ) "
8
- travis_yml=" $( cat .travis.yml | grep ' ^rust: ' | head -n 1 | sed -E ' s/^rust: (nightly-[0-9]{4}-[0-9]{2}-[0-9]{2})$/\1/' ) "
9
8
10
9
# Ensure all the configuration files points to the same nightly
11
10
check () {
@@ -15,6 +14,5 @@ check() {
15
14
fi
16
15
}
17
16
check RustConfig " ${rust_config} "
18
- check .travis.yml " ${travis_yml} "
19
17
20
18
echo " all the configuration files points to the same nightly!"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments