Re-order jobs to clarify

This commit is contained in:
Yuki Okushi 2020-10-10 22:24:06 +09:00
parent 9ed379cbaa
commit f69a0dca56

View file

@ -20,19 +20,16 @@ jobs:
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Install target
run: |
set -ex
rustup target add ${{ matrix.target }}
- name: Query Rust and Cargo versions
run: |
set -ex
@ -43,7 +40,6 @@ jobs:
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
@ -57,11 +53,179 @@ jobs:
n=$((n+1))
sleep 1
done
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
macos:
name: macOS
runs-on: macos-10.15
strategy:
fail-fast: false
matrix:
target: [
x86_64-apple-darwin,
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Install target
run: |
set -ex
rustup target add ${{ matrix.target }}
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
windows:
name: Windows
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
env:
ARCH_BITS: 64
ARCH: x86_64
- target: x86_64-pc-windows-msvc
# Disabled because broken:
# https://github.com/rust-lang/libc/issues/1592
#- target: i686-pc-windows-gnu
# env:
# ARCH_BITS: 32
# ARCH: i686
- target: i686-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
rustup set profile minimal
rustup update --force --no-self-update nightly-${{ matrix.target }}
rustup default nightly-${{ matrix.target }}
- name: Install target
run: rustup target add ${{ matrix.target }}
- name: Install MinGW32
run: |
set -ex
if [[ ${ARCH_BITS} = "i686" ]]; then
choco install mingw --x86 --force
fi
shell: bash
- name: Find GCC libraries
run: |
set -ex
gcc -print-search-dirs
/usr/bin/find "C:\ProgramData\Chocolatey" -name "crt2*"
/usr/bin/find "C:\ProgramData\Chocolatey" -name "dllcrt2*"
/usr/bin/find "C:\ProgramData\Chocolatey" -name "libmsvcrt*"
shell: bash
- name: Fix MinGW
run: |
set -ex
if [[ -n ${ARCH_BITS} ]]; then
for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do
cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw${ARCH_BITS}/${ARCH}-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/${TARGET}/lib"
done
fi
shell: bash
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
shell: bash
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
shell: bash
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
shell: bash
style_and_docs:
name: Style and docs
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Check style
run: sh ci/style.sh
- name: Generate documentation
run: LIBC_CI=1 sh ci/dox.sh
docker_linux_tier2:
name: Docker Linux Tier2
runs-on: ubuntu-18.04
@ -103,19 +267,16 @@ jobs:
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Install target
run: |
set -ex
rustup target add ${{ matrix.target }}
- name: Query Rust and Cargo versions
run: |
set -ex
@ -126,7 +287,6 @@ jobs:
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
@ -140,252 +300,9 @@ jobs:
n=$((n+1))
sleep 1
done
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh ${{ matrix.target }}
macos:
name: macOS
runs-on: macos-10.15
strategy:
fail-fast: false
matrix:
target: [
x86_64-apple-darwin,
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Install target
run: |
set -ex
rustup target add ${{ matrix.target }}
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
windows:
name: Windows
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
env:
ARCH_BITS: 64
ARCH: x86_64
- target: x86_64-pc-windows-msvc
# Disabled because broken:
# https://github.com/rust-lang/libc/issues/1592
#- target: i686-pc-windows-gnu
# env:
# ARCH_BITS: 32
# ARCH: i686
- target: i686-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
rustup set profile minimal
rustup update --force --no-self-update nightly-${{ matrix.target }}
rustup default nightly-${{ matrix.target }}
- name: Install target
run: rustup target add ${{ matrix.target }}
- name: Install MinGW32
run: |
set -ex
if [[ ${ARCH_BITS} = "i686" ]]; then
choco install mingw --x86 --force
fi
shell: bash
- name: Find GCC libraries
run: |
set -ex
gcc -print-search-dirs
/usr/bin/find "C:\ProgramData\Chocolatey" -name "crt2*"
/usr/bin/find "C:\ProgramData\Chocolatey" -name "dllcrt2*"
/usr/bin/find "C:\ProgramData\Chocolatey" -name "libmsvcrt*"
shell: bash
- name: Fix MinGW
run: |
set -ex
if [[ -n ${ARCH_BITS} ]]; then
for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do
cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw${ARCH_BITS}/${ARCH}-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/${TARGET}/lib"
done
fi
shell: bash
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
shell: bash
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
shell: bash
- name: Execute run.sh
run: LIBC_CI=1 sh ./ci/run.sh ${{ matrix.target }}
shell: bash
style_and_docs:
name: Style and docs
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force nightly
rustup default nightly
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Check style
run: sh ci/style.sh
- name: Generate documentation
run: LIBC_CI=1 sh ci/dox.sh
build_channels_linux:
name: Build Channels Linux
runs-on: ubuntu-18.04
env:
OS: linux
strategy:
fail-fast: false
max-parallel: 5
matrix:
toolchain: [
stable,
beta,
nightly,
1.13.0,
1.19.0,
1.24.0,
1.25.0,
1.30.0,
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
# devkitpro's pacman needs to be connected from Docker.
DockerSwitch:
name: Docker Switch
@ -394,7 +311,6 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
@ -427,11 +343,11 @@ jobs:
- name: Execute run-docker.sh
run: LIBC_CI=1 sh ./ci/run-docker.sh switch
build_channels_macos:
name: Build Channels macOS
runs-on: macos-10.15
build_channels_linux:
name: Build Channels Linux
runs-on: ubuntu-18.04
env:
OS: macos
OS: linux
strategy:
fail-fast: false
max-parallel: 5
@ -448,7 +364,6 @@ jobs:
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
@ -481,6 +396,61 @@ jobs:
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
build_channels_macos:
name: Build Channels macOS
runs-on: macos-10.15
env:
OS: macos
strategy:
fail-fast: false
max-parallel: 5
matrix:
toolchain: [
stable,
beta,
nightly,
1.13.0,
1.19.0,
1.24.0,
1.25.0,
1.30.0,
]
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
rustup set profile minimal
rustup update --force ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
- name: Query Rust and Cargo versions
run: |
set -ex
rustc -Vv
cargo -V
rustup -Vv
rustup show
which rustc
which cargo
which rustup
- name: Generate lockfile
run: |
set -ex
N=5
n=0
until [ $n -ge $N ]
do
if cargo generate-lockfile ; then
break
fi
n=$((n+1))
sleep 1
done
- name: Execute build.sh
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
semver_linux:
name: Semver Linux
runs-on: ubuntu-18.04
@ -488,7 +458,6 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex
@ -521,7 +490,6 @@ jobs:
- name: Check breaking changes
run: sh ci/semver.sh linux
semver_macos:
name: Semver macOS
runs-on: macos-10.15
@ -529,7 +497,6 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
run: |
set -ex