Skip to content

Commit

Permalink
Pin CI to Ubuntu 20.04 until #483 is sorted out.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 13, 2022
1 parent d1c7cbf commit 99755a1
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/main.yml
Expand Up @@ -211,20 +211,20 @@ jobs:
build: [ubuntu, ubuntu-18.04, i686-linux, aarch64-linux, powerpc64le-linux, riscv64-linux, s390x-linux, arm-linux, ubuntu-stable, ubuntu-1.48, i686-linux-stable, aarch64-linux-stable, riscv64-linux-stable, s390x-linux-stable, mipsel-linux-stable, mips64el-linux-stable, powerpc64le-linux-stable, arm-linux-stable, ubuntu-1.48, i686-linux-1.48, aarch64-linux-1.48, riscv64-linux-1.48, s390x-linux-1.48, mipsel-linux-1.48, mips64el-linux-1.48, powerpc64le-linux-1.48, arm-linux-1.48, macos-latest, macos-10.15, windows, windows-2019]
include:
- build: ubuntu
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
- build: ubuntu-18.04
os: ubuntu-18.04
rust: nightly
- build: i686-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: i686-unknown-linux-gnu
gcc_package: gcc-i686-linux-gnu
gcc: i686-linux-gnu-gcc
libc_package: libc-dev-i386-cross
- build: aarch64-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: aarch64-unknown-linux-gnu
gcc_package: gcc-aarch64-linux-gnu
Expand All @@ -233,7 +233,7 @@ jobs:
qemu_args: -L /usr/aarch64-linux-gnu
qemu_target: aarch64-linux-user
- build: powerpc64le-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: powerpc64le-unknown-linux-gnu
gcc_package: gcc-powerpc64le-linux-gnu
Expand All @@ -242,7 +242,7 @@ jobs:
qemu_args: -L /usr/powerpc64le-linux-gnu
qemu_target: ppc64le-linux-user
- build: mips64el-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: mips64el-unknown-linux-gnuabi64
gcc_package: gcc-mips64el-linux-gnuabi64
Expand All @@ -251,7 +251,7 @@ jobs:
qemu_args: -L /usr/mips64el-linux-gnuabi64
qemu_target: mips64el-linux-user
- build: mipsel-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: mipsel-unknown-linux-gnu
gcc_package: gcc-mipsel-linux-gnu
Expand All @@ -260,7 +260,7 @@ jobs:
qemu_args: -L /usr/mipsel-linux-gnu
qemu_target: mipsel-linux-user
- build: riscv64-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: riscv64gc-unknown-linux-gnu
gcc_package: gcc-riscv64-linux-gnu
Expand All @@ -269,7 +269,7 @@ jobs:
qemu_args: -L /usr/riscv64-linux-gnu
qemu_target: riscv64-linux-user
- build: s390x-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: s390x-unknown-linux-gnu
gcc_package: gcc-s390x-linux-gnu
Expand All @@ -278,7 +278,7 @@ jobs:
qemu_args: -L /usr/s390x-linux-gnu
qemu_target: s390x-linux-user
- build: arm-linux
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: nightly
target: armv5te-unknown-linux-gnueabi
gcc_package: gcc-arm-linux-gnueabi
Expand All @@ -287,17 +287,17 @@ jobs:
qemu_args: -L /usr/arm-linux-gnueabi
qemu_target: arm-linux-user
- build: ubuntu-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
- build: i686-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: i686-unknown-linux-gnu
gcc_package: gcc-i686-linux-gnu
gcc: i686-linux-gnu-gcc
libc_package: libc-dev-i386-cross
- build: aarch64-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: aarch64-unknown-linux-gnu
gcc_package: gcc-aarch64-linux-gnu
Expand All @@ -306,7 +306,7 @@ jobs:
qemu_args: -L /usr/aarch64-linux-gnu
qemu_target: aarch64-linux-user
- build: riscv64-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: riscv64gc-unknown-linux-gnu
gcc_package: gcc-riscv64-linux-gnu
Expand All @@ -315,7 +315,7 @@ jobs:
qemu_args: -L /usr/riscv64-linux-gnu
qemu_target: riscv64-linux-user
- build: s390x-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: s390x-unknown-linux-gnu
gcc_package: gcc-s390x-linux-gnu
Expand All @@ -324,7 +324,7 @@ jobs:
qemu_args: -L /usr/s390x-linux-gnu
qemu_target: s390x-linux-user
- build: powerpc64le-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: powerpc64le-unknown-linux-gnu
gcc_package: gcc-powerpc64le-linux-gnu
Expand All @@ -333,7 +333,7 @@ jobs:
qemu_args: -L /usr/powerpc64le-linux-gnu
qemu_target: ppc64le-linux-user
- build: mips64el-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: mips64el-unknown-linux-gnuabi64
gcc_package: gcc-mips64el-linux-gnuabi64
Expand All @@ -342,7 +342,7 @@ jobs:
qemu_args: -L /usr/mips64el-linux-gnuabi64
qemu_target: mips64el-linux-user
- build: mipsel-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: mipsel-unknown-linux-gnu
gcc_package: gcc-mipsel-linux-gnu
Expand All @@ -351,7 +351,7 @@ jobs:
qemu_args: -L /usr/mipsel-linux-gnu
qemu_target: mipsel-linux-user
- build: arm-linux-stable
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: stable
target: armv5te-unknown-linux-gnueabi
gcc_package: gcc-arm-linux-gnueabi
Expand All @@ -360,17 +360,17 @@ jobs:
qemu_args: -L /usr/arm-linux-gnueabi
qemu_target: arm-linux-user
- build: ubuntu-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
- build: i686-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: i686-unknown-linux-gnu
gcc_package: gcc-i686-linux-gnu
gcc: i686-linux-gnu-gcc
libc_package: libc-dev-i386-cross
- build: aarch64-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: aarch64-unknown-linux-gnu
gcc_package: gcc-aarch64-linux-gnu
Expand All @@ -379,7 +379,7 @@ jobs:
qemu_args: -L /usr/aarch64-linux-gnu
qemu_target: aarch64-linux-user
- build: riscv64-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: riscv64gc-unknown-linux-gnu
gcc_package: gcc-riscv64-linux-gnu
Expand All @@ -388,7 +388,7 @@ jobs:
qemu_args: -L /usr/riscv64-linux-gnu
qemu_target: riscv64-linux-user
- build: s390x-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: s390x-unknown-linux-gnu
gcc_package: gcc-s390x-linux-gnu
Expand All @@ -397,7 +397,7 @@ jobs:
qemu_args: -L /usr/s390x-linux-gnu
qemu_target: s390x-linux-user
- build: powerpc64le-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: powerpc64le-unknown-linux-gnu
gcc_package: gcc-powerpc64le-linux-gnu
Expand All @@ -406,7 +406,7 @@ jobs:
qemu_args: -L /usr/powerpc64le-linux-gnu
qemu_target: ppc64le-linux-user
- build: mips64el-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: mips64el-unknown-linux-gnuabi64
gcc_package: gcc-mips64el-linux-gnuabi64
Expand All @@ -415,7 +415,7 @@ jobs:
qemu_args: -L /usr/mips64el-linux-gnuabi64
qemu_target: mips64el-linux-user
- build: mipsel-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: mipsel-unknown-linux-gnu
gcc_package: gcc-mipsel-linux-gnu
Expand All @@ -424,7 +424,7 @@ jobs:
qemu_args: -L /usr/mipsel-linux-gnu
qemu_target: mipsel-linux-user
- build: arm-linux-1.48
os: ubuntu-latest
os: ubuntu-20.04 # TODO: remove pin when fixed (#483)
rust: 1.48
target: armv5te-unknown-linux-gnueabi
gcc_package: gcc-arm-linux-gnueabi
Expand Down Expand Up @@ -462,7 +462,7 @@ jobs:
with:
path: ${{ runner.tool_cache }}/qemu
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patched
if: matrix.target != '' && matrix.os == 'ubuntu-latest'
if: matrix.target != '' && matrix.os == 'ubuntu-20.04' # TODO: remove pin when fixed (#483)

- name: Install cross-compilation tools
run: |
Expand All @@ -471,14 +471,14 @@ jobs:
sudo apt-get install -y ${{ matrix.gcc_package }} ninja-build
upcase=$(echo ${{ matrix.target }} | awk '{ print toupper($0) }' | sed 's/-/_/g')
echo CARGO_TARGET_${upcase}_LINKER=${{ matrix.gcc }} >> $GITHUB_ENV
if: matrix.gcc_package != '' && matrix.os == 'ubuntu-latest'
if: matrix.gcc_package != '' && matrix.os == 'ubuntu-20.04' # TODO: remove pin when fixed (#483)

- name: Install cross-compilation libraries
run: |
set -ex
sudo apt-get update
sudo apt-get install -y ${{ matrix.libc_package }}
if: matrix.libc_package != '' && matrix.os == 'ubuntu-latest'
if: matrix.libc_package != '' && matrix.os == 'ubuntu-20.04' # TODO: remove pin when fixed (#483)

- name: Install qemu
run: |
Expand All @@ -504,7 +504,7 @@ jobs:
patch -p1 < $GITHUB_WORKSPACE/ci/s390x-stat-have-nsec.patch
./configure --target-list=${{ matrix.qemu_target }} --prefix=${{ runner.tool_cache }}/qemu --disable-tools --disable-slirp --disable-fdt --disable-capstone --disable-docs
ninja -C build install
if: matrix.qemu != '' && matrix.os == 'ubuntu-latest'
if: matrix.qemu != '' && matrix.os == 'ubuntu-20.04' # TODO: remove pin when fixed (#483)

- name: Use specific dependency versions for Rust 1.48 compatibility.
if: matrix.rust == '1.48'
Expand Down

0 comments on commit 99755a1

Please sign in to comment.