summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/bors.yml18
-rw-r--r--.github/workflows/docs.yml2
-rw-r--r--.github/workflows/main.yml4
-rw-r--r--ci/install-rust.sh6
-rwxr-xr-xci/run-docker.sh2
-rw-r--r--ci/style.sh10
6 files changed, 21 insertions, 21 deletions
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml
index abcc01765e..8ce067a8c0 100644
--- a/.github/workflows/bors.yml
+++ b/.github/workflows/bors.yml
@@ -9,7 +9,7 @@ on:
jobs:
docker_linux_tier1:
name: Docker Linux Tier1
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
@@ -81,7 +81,7 @@ jobs:
style_check:
name: Style check
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
@@ -97,7 +97,7 @@ jobs:
docker_linux_tier2:
name: Docker Linux Tier2
needs: [docker_linux_tier1, style_check]
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
max-parallel: 12
@@ -149,7 +149,7 @@ jobs:
docker_switch:
name: Docker Switch
needs: [docker_linux_tier1, style_check]
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
@@ -165,7 +165,7 @@ jobs:
build_channels_linux:
name: Build Channels Linux
needs: docker_linux_tier2
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
env:
OS: linux
strategy:
@@ -225,7 +225,7 @@ jobs:
semver_linux:
name: Semver Linux
needs: build_channels_linux
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
@@ -258,7 +258,7 @@ jobs:
docs:
name: Generate documentation
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
needs: docker_linux_tier2
strategy:
fail-fast: true
@@ -281,7 +281,7 @@ jobs:
end_success:
name: bors build finished
if: github.event.pusher.name == 'bors' && success()
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
needs: [
docker_linux_tier1,
docker_linux_tier2,
@@ -303,7 +303,7 @@ jobs:
end_failure:
name: bors build finished
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
needs: [
docker_linux_tier1,
docker_linux_tier2,
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 33580940a3..b75448397f 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -8,7 +8,7 @@ on:
jobs:
upload_docs:
name: Upload documentation
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
if: github.repository == 'rust-lang/libc'
steps:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 193abba139..6b5f5daf97 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,7 +10,7 @@ on:
jobs:
docker_linux_tier1:
name: Docker Linux Tier1
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
@@ -73,7 +73,7 @@ jobs:
style_check:
name: Style check
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-20.04
strategy:
fail-fast: true
steps:
diff --git a/ci/install-rust.sh b/ci/install-rust.sh
index 598dec282d..dcd24b88ef 100644
--- a/ci/install-rust.sh
+++ b/ci/install-rust.sh
@@ -47,13 +47,13 @@ if [ "$OS" = "windows" ]; then
fi
echo "Query rust and cargo versions"
+command -v rustc
+command -v cargo
+command -v rustup
rustc -Vv
cargo -V
rustup -Vv
rustup show
-which rustc
-which cargo
-which rustup
echo "Generate lockfile"
N=5
diff --git a/ci/run-docker.sh b/ci/run-docker.sh
index 648eafcd94..f1fa6656c4 100755
--- a/ci/run-docker.sh
+++ b/ci/run-docker.sh
@@ -62,7 +62,7 @@ build_switch() {
kvm=""
fi
- cp "$(which rustup)" "$(rustc --print sysroot)/bin"
+ cp "$(command -v rustup)" "$(rustc --print sysroot)/bin"
docker run \
--rm \
diff --git a/ci/style.sh b/ci/style.sh
index 6dc9f1333c..923e675b86 100644
--- a/ci/style.sh
+++ b/ci/style.sh
@@ -4,11 +4,11 @@ set -ex
rustc ci/style.rs && ./style src
-if rustup component add rustfmt-preview ; then
- command -v rustfmt
- rustfmt -V
- cargo fmt --all -- --check
-fi
+rustup toolchain install nightly -c rustfmt --allow-downgrade
+rustup override set nightly
+command -v rustfmt
+rustfmt -V
+cargo fmt --all -- --check
if shellcheck --version ; then
# GHA's shellcheck is too old (0.4.6) and cannot handle SC2153 correctly.