diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d7a060e..41c6a4bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: cross: name: Cross - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [ @@ -60,7 +60,7 @@ jobs: tier2: name: Tier 2 - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [ @@ -79,7 +79,7 @@ jobs: tier3: name: Tier 3 - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [ @@ -101,9 +101,41 @@ jobs: - uses: Swatinem/rust-cache@v2 - run: cargo build -Z build-std=core --target=${{ matrix.target }} + # Ubuntu does not support running x32 binaries: + # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1994516/comments/21 + linux-x32: + name: Linux x32 + runs-on: ubuntu-24.04 + strategy: + matrix: + target: [x86_64-unknown-linux-gnux32] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + - name: Install libc and libgcc + run: | + sudo apt-get update + sudo apt-get install --no-install-recommends libc6-dev-x32 libx32gcc-11-dev + - uses: Swatinem/rust-cache@v2 + - run: cargo build --target=${{ matrix.target }} --features=std + - env: + RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom" + run: cargo build --target=${{ matrix.target }} --features=std + - env: + RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_rustix" + run: cargo build --target=${{ matrix.target }} --features=std + - env: + RUSTFLAGS: -Dwarnings --cfg getrandom_test_linux_fallback + run: cargo build --features=std + - env: + RUSTFLAGS: -Dwarnings --cfg getrandom_backend="rdrand" + run: cargo build --features=std + rdrand: name: RDRAND - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [ @@ -122,7 +154,7 @@ jobs: rndr: name: RNDR - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master @@ -145,7 +177,7 @@ jobs: esp-idf: name: ESP-IDF - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly # Required to build libcore @@ -158,7 +190,7 @@ jobs: no-atomics: name: No Atomics - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/nopanic.yaml b/.github/workflows/nopanic.yaml index 24c89efb..f9821a1d 100644 --- a/.github/workflows/nopanic.yaml +++ b/.github/workflows/nopanic.yaml @@ -28,7 +28,7 @@ env: jobs: linux: name: Linux - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master @@ -82,7 +82,7 @@ jobs: cross: name: Cross - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ece1117c..e96ad130 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-22.04, windows-2022] + os: [ubuntu-24.04, windows-2022] toolchain: [nightly, beta, stable, "1.63"] # Only Test macOS on stable to reduce macOS CI jobs include: @@ -42,35 +42,23 @@ jobs: linux: name: Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [x86_64-unknown-linux-musl, i686-unknown-linux-musl] - include: - - target: i686-unknown-linux-gnu - packages: libc6-dev-i386 lib32gcc-11-dev - - target: x86_64-unknown-linux-gnux32 - packages: libc6-dev-x32 libx32gcc-11-dev - # TODO: Find a Linux image/runner with CONFIG_X86_X32_ABI set - cargo_test_opts: --no-run steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} - - name: Install libc and libgcc - if: matrix.packages - run: | - sudo apt-get update - sudo apt-get install --no-install-recommends ${{ matrix.packages }} - uses: Swatinem/rust-cache@v2 - - run: cargo test ${{ matrix.cargo_test_opts }} --target=${{ matrix.target }} --features=std + - run: cargo test --target=${{ matrix.target }} --features=std - env: RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_getrandom" - run: cargo test ${{ matrix.cargo_test_opts }} --target=${{ matrix.target }} --features=std + run: cargo test --target=${{ matrix.target }} --features=std - env: RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_rustix" - run: cargo test ${{ matrix.cargo_test_opts }} --target=${{ matrix.target }} --features=std + run: cargo test --target=${{ matrix.target }} --features=std - env: RUSTFLAGS: -Dwarnings --cfg getrandom_test_linux_fallback run: cargo test --features=std @@ -144,7 +132,7 @@ jobs: sanitizer: name: Sanitizer - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master @@ -158,7 +146,7 @@ jobs: cross: name: Cross - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: target: [ @@ -182,7 +170,7 @@ jobs: freebsd: name: FreeBSD VM - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Test in FreeBSD @@ -196,7 +184,7 @@ jobs: openbsd: name: OpenBSD VM - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Test in OpenBSD @@ -210,7 +198,7 @@ jobs: netbsd: name: NetBSD VM - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Test in NetBSD @@ -226,7 +214,7 @@ jobs: # https://github.com/rust-random/getrandom/actions/runs/11405005618/job/31735653874?pr=528 # dragonflybsd: # name: DragonflyBSD VM - # runs-on: ubuntu-22.04 + # runs-on: ubuntu-24.04 # steps: # - uses: actions/checkout@v4 # - name: Test in DragonflyBSD @@ -285,7 +273,7 @@ jobs: wasi: name: WASI - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 8da81c65..2653984d 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -12,7 +12,7 @@ permissions: jobs: clippy: name: Clippy - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: RUSTFLAGS: "-Dwarnings" steps: @@ -86,7 +86,7 @@ jobs: fmt: name: rustfmt - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable @@ -98,7 +98,7 @@ jobs: check-doc: name: rustdoc - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master