diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-10 21:24:02 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-14 07:40:01 +0900 |
commit | 6e4f0a588898c9303a013e98023defbd8b2e40e2 (patch) | |
tree | dbed81db7a8672a96331e5b6803ddf715dde09bf | |
parent | 06ccbe399f5d3dc5ed9000305d5b5ebc03e54a66 (diff) | |
download | rust-libc-6e4f0a588898c9303a013e98023defbd8b2e40e2.tar.gz |
Serial Experiments GitHub Actions
StyleAndDocs, BuildChannelsLinux, and DockerSwitch
-rw-r--r-- | .github/workflows/main.yml | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc8d1effe5..8cd86705b3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -285,3 +285,144 @@ jobs: - 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 + 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: Execute run-docker.sh + run: LIBC_CI=1 sh ./ci/run-docker.sh switch |