Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump actions/checkout version and fix gcc 5 testing #3268

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Remark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down
66 changes: 45 additions & 21 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down Expand Up @@ -269,61 +269,85 @@ jobs:
build-and-check-gcc-5:

runs-on: ubuntu-22.04
container: ubuntu:18.04
env:
# otherwise we hang when installing tzdata
DEBIAN_FRONTEND: noninteractive
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
apt-get update;
apt-get install -y \
sudo apt-get update;
sudo apt-get install -y \
curl \
automake \
autoconf \
libtool \
autogen \
bison \
flex \
libc6-dev \
libc6-dev-i386 \
libgmp3-dev \
libmpfr-dev \
libmpc-dev \
build-essential \
gcc-5 \
g++-5 \
gcc-5-multilib \
g++-5-multilib \
dejagnu;
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;

- name: Restore cached gcc-5.4
id: restore-gcc5
uses: actions/cache/restore@v4
with:
key: ce-tar-gcc-5
path: ~/gcc-5.4.0/

- name: Download and install gcc5.4
if: ${{ steps.restore-gcc5.outputs.cache-hit != 'true' }}
run: |
curl "https://s3.amazonaws.com/compiler-explorer/opt/gcc-5.4.0.tar.xz" -o /tmp/gcc.tar.xz;
cd ~;
tar xvf /tmp/gcc.tar.xz

- name: Store gcc-5.4 to cache
id: cache-gcc5
if: always() && steps.restore-gcc5.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ce-tar-gcc-5
path: ~/gcc-5.4.0/

- name: Make Source Read-Only
run: chmod -R a-w ./*

- name: Configure
run: |
mkdir -p gccrs-build;
cd gccrs-build;
../configure \
CC='gcc-5' \
CXX='g++-5' \
--enable-languages=rust \
--disable-bootstrap \
--enable-multilib

# Add cargo to our path quickly
. "$HOME/.cargo/env";

PATH=$HOME/gcc-5.4.0/bin:$PATH \
../configure \
--enable-languages=rust \
--disable-bootstrap \
--enable-multilib

- name: Build
shell: bash
run: |
# Add cargo to our path quickly
. "$HOME/.cargo/env";
make -C gccrs-build -j $(nproc)
PATH=$HOME/gcc-5.4.0/bin:$PATH \
make -C gccrs-build -j $(nproc)

- name: Run Tests
run: |
cd gccrs-build; \
make check-rust RUNTESTFLAGS="--target_board=unix\{-m32,-m64}"
PATH=$HOME/gcc-5.4.0/bin:$PATH \
make check-rust RUNTESTFLAGS="--target_board=unix\{-m32,-m64}"

- name: Archive check-rust results
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -353,7 +377,7 @@ jobs:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down Expand Up @@ -411,7 +435,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Deps
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ccpp32alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Alpine Linux (32-bit)
uses: jirutka/setup-alpine@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
# If updating these steps, please also correspondingly update '../../CONTRIBUTING.md', "Running `clang-format` locally".
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Copy .clang-format file
run: cp contrib/clang-format .clang-format
- name: Check clang-format
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/commit-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: check-changelogs

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -37,7 +37,7 @@ jobs:
if: ${{ github.base_ref == 'gcc-patch-dev' }} # master commits don't need the gccrs prefix

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -62,7 +62,7 @@ jobs:
name: check-commit-signoff

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
name: check-issue-reference

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
Loading