Skip to content

Commit

Permalink
out of usr/local
Browse files Browse the repository at this point in the history
  • Loading branch information
dkm committed Nov 27, 2024
1 parent da078ca commit 850404d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ jobs:
libmpc-dev \
build-essential \
dejagnu;
sudo mkdir -p /usr/local/gcc-5.4;
sudo chmod 777 /usr/local/gcc-5.4;
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
Expand All @@ -303,23 +301,22 @@ jobs:
uses: actions/cache/restore@v4
with:
key: ce-tar-gcc-5
path: /usr/local/gcc-5.4.0/
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;
sudo mkdir -p /usr/local/;
cd /usr/local;
sudo tar xvf /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: /usr/local/gcc-5.4.0/
path: ~/gcc-5.4.0/

- name: Make Source Read-Only
run: chmod -R a-w ./*
Expand All @@ -332,7 +329,7 @@ jobs:
# Add cargo to our path quickly
. "$HOME/.cargo/env";
PATH=/usr/local/gcc-5.4.0/bin:$PATH \
PATH=$HOME/gcc-5.4.0/bin:$PATH \
../configure \
--enable-languages=rust \
--disable-bootstrap \
Expand All @@ -343,13 +340,13 @@ jobs:
run: |
# Add cargo to our path quickly
. "$HOME/.cargo/env";
PATH=/usr/local/gcc-5.4.0/bin:$PATH \
PATH=$HOME/gcc-5.4.0/bin:$PATH \
make -C gccrs-build -j $(nproc)
- name: Run Tests
run: |
cd gccrs-build; \
PATH=/usr/local/gcc-5.4.0/bin:$PATH \
PATH=$HOME/gcc-5.4.0/bin:$PATH \
make check-rust RUNTESTFLAGS="--target_board=unix\{-m32,-m64}"
- name: Archive check-rust results
Expand Down

0 comments on commit 850404d

Please sign in to comment.