From 4d87e095e90a4a1da95c146891473fe57fab6891 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 23 Feb 2025 10:32:03 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20SDCC=20build?= =?UTF-8?q?=20process?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - This commit updates the SDCC build process with various minor changes. --- .gitea/workflows/sdcc.yml | 80 +++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.gitea/workflows/sdcc.yml b/.gitea/workflows/sdcc.yml index dfd67e7..8645dcc 100644 --- a/.gitea/workflows/sdcc.yml +++ b/.gitea/workflows/sdcc.yml @@ -11,53 +11,53 @@ on: jobs: build: - runs-on: ubuntu-latest # Runs on the latest Ubuntu version available + runs-on: ubuntu-latest # Runs on the latest Ubuntu version available steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - github-server-url: ${{ vars.GIT_SERVER_URL }} + - name: Checkout code + uses: actions/checkout@v4 + with: + github-server-url: ${{ vars.GIT_SERVER_URL }} - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y build-essential libgmp-dev libmpfr-dev libncurses-dev git subversion bison flex + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential libgmp-dev libmpfr-dev libncurses-dev git subversion bison flex libboost-graph-dev gcc pyhton - # - name: Clone SDCC repository - # run: | - # git clone https://github.com/sdcc-team/sdcc.git - # cd sdcc + # - name: Clone SDCC repository + # run: | + # git clone https://github.com/sdcc-team/sdcc.git + # cd sdcc - - name: Checkout SDCC using SVN - run: | - # Use SVN to checkout SDCC at a specific revision - # svn co -r [rev] svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc - svn co -r 9092 svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc + - name: Checkout SDCC using SVN + run: | + # Use SVN to checkout SDCC at a specific revision + # svn co -r [rev] svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc + svn co -r 9092 svn://svn.code.sf.net/p/sdcc/code/trunk/sdcc - - name: Build SDCC - run: | - cd sdcc - ./configure --target=8051 --with-arch=8051 --prefix=/usr/local - make - sudo make install + - name: Build SDCC + run: | + cd sdcc + ./configure --target=8051 --with-arch=8051 --prefix=/usr/local + make + sudo make install - - name: Verify SDCC installation - run: | - sdcc --version # Verifies if SDCC was installed successfully + - name: Verify SDCC installation + run: | + sdcc --version # Verifies if SDCC was installed successfully - - name: Compile using Makefile - run: | - cd $GITHUB_WORKSPACE # Navigate to the root of your repo (where the Makefile is located) - make # Run the make command to build the project using the Makefile + - name: Compile using Makefile + run: | + cd $GITHUB_WORKSPACE # Navigate to the root of your repo (where the Makefile is located) + make # Run the make command to build the project using the Makefile - # - name: Upload compiled hex file - # uses: actions/upload-artifact@v2 - # with: - # name: cc2530-firmware - # path: output.ihx # Replace with the actual output file name if different (e.g., .ihx) + # - name: Upload compiled hex file + # uses: actions/upload-artifact@v2 + # with: + # name: cc2530-firmware + # path: output.ihx # Replace with the actual output file name if different (e.g., .ihx) - - name: Clean up compiled files - run: | - cd $GITHUB_WORKSPACE # Navigate back to the project directory - make clean # Run the 'make clean' command to delete the compiled files \ No newline at end of file + - name: Clean up compiled files + run: | + cd $GITHUB_WORKSPACE # Navigate back to the project directory + make clean # Run the 'make clean' command to delete the compiled files