Skip to content

Commit

Permalink
Use better download link for SDCC in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Jun 5, 2024
1 parent 84fe0db commit 3fc30c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ jobs:
steps:
- name: install SDCC
run: | #install silent and then unpack missing installation libraries
Invoke-WebRequest https://netix.dl.sourceforge.net/project/sdcc/sdcc-win64/$env:SDCC_VERSION/sdcc-$env:SDCC_VERSION-rc3-x64-setup.exe -OutFile sdcc_setup.exe
Invoke-WebRequest -UserAgent "Wget" -Uri https://sourceforge.net/projects/sdcc/files/sdcc-win64/$env:SDCC_VERSION/sdcc-$env:SDCC_VERSION-rc3-x64-setup.exe/download -OutFile sdcc_setup.exe
ls
Start-Process -wait -FilePath "sdcc_setup.exe" -ArgumentList "/S", "/D=C:\Program Files\SDCC"
echo "Adding sdcc to PATH"
Add-Content $env:GITHUB_PATH "C:\Program Files\SDCC\bin"
cd C:\Program Files\SDCC\bin
sdcc.exe --version
sdcc.exe --print-search-dirs
- uses: actions/checkout@v4
- name: Build
run: |
Expand All @@ -46,9 +49,9 @@ jobs:
- name: install SDCC
run: |
cd ~
wget https://altushost-swe.dl.sourceforge.net/project/sdcc/sdcc-linux-amd64/$SDCC_VERSION/sdcc-$SDCC_VERSION-amd64-unknown-linux2.5.tar.bz2
wget https://sourceforge.net/projects/sdcc/files/sdcc-linux-amd64/4.4.0/sdcc-4.4.0-amd64-unknown-linux2.5.tar.bz2/download -O sdcc-amd64.tar.bz2
ls
sudo tar xf sdcc-$SDCC_VERSION-amd64-unknown-linux2.5.tar.bz2
sudo tar xf sdcc-amd64.tar.bz2
cd sdcc-$SDCC_VERSION/
sudo cp -r * /usr/local
sdcc --version
Expand Down

0 comments on commit 3fc30c5

Please sign in to comment.