Skip to content

Commit

Permalink
Refactor installation job to be consistent with build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Nov 3, 2023
1 parent 40aabdc commit a3c73ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ jobs:

- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y build-essential binutils-for-build texinfo bison flex zlib1g-dev libgmp-dev dejagnu libmpc-dev
./install-dependencies.sh
- name: Run Bash Script
run: |
chmod +x ./build.sh
bash ./build.sh
./build.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
10 changes: 10 additions & 0 deletions install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /bin/bash
set -e # stop at first error
set -x # echo on

echo "::group::Install Dependencies"
sudo apt update
sudo apt install -y build-essential binutils-for-build texinfo bison flex zlib1g-dev libgmp-dev dejagnu libmpc-dev
echo "::endgroup::"

echo 'Success!'

0 comments on commit a3c73ed

Please sign in to comment.