Skip to content

Commit 65768a2

Browse files
committed
Fetch the latest binutils installation directly from the GNU FTP
1 parent 2ab9ebf commit 65768a2

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: 22
15-
16-
- name: Get binutils
17-
run: |
18-
sudo apt-get update
19-
sudo apt-get install binutils -y
2015

16+
- name: Get the latest version of binutils for an up-to-date GAS
17+
run: |
18+
LATEST_RELEASE_URL=$(wget -q -O - ftp://ftp.gnu.org/gnu/binutils/ | grep -o "ftp[^\"]*.tar.gz" | sort -V | tail -n 1)
19+
wget -m ${LATEST_RELEASE_URL} -nd -O binutils-latest.tar.gz
20+
mkdir binutils
21+
tar xf binutils-latest.tar.gz -C binutils --strip-components 1
22+
cd binutils
23+
./configure
24+
make all-gas install-gas
25+
as --version
26+
2127
- name: Install and Build
2228
run: |
2329
npm install

0 commit comments

Comments
 (0)