diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-10 18:33:40 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-10 20:31:42 +0900 |
commit | 478e6ae161f443f77054594fed2687dbddad08f8 (patch) | |
tree | 1c7efb12eb22a9906e3a18dd180927c9dc27bea2 /.github/workflows/main.yml | |
parent | cbe11e71cd861f63e93517fbd6bed8574cd89bfa (diff) | |
download | rust-libc-478e6ae161f443f77054594fed2687dbddad08f8.tar.gz |
Serial Experiments GitHub Actions (DockerLinuxTier1)
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..7ef1ef268a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,64 @@ +name: CI + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - master + +jobs: + docker_linux_tier1: + name: Docker Linux Tier1 + runs-on: ubuntu-18.04 + strategy: + fail-fast: false + matrix: + target: [ + i686-unknown-linux-gnu, + x86_64-unknown-linux-gnu, + ] + 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 + if [ -n "${{ matrix.target }}" ]; then + rustup target add ${{ matrix.target }} + fi + + - 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 ${{ matrix.target }} |