From c070e02d92153cb632bc127433c51f68d3c86a3c Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Mon, 10 Jun 2024 23:30:28 +0200 Subject: [PATCH] Create build_for_x86_noble.yml --- .github/workflows/build_for_x86_noble.yml | 60 +++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/build_for_x86_noble.yml diff --git a/.github/workflows/build_for_x86_noble.yml b/.github/workflows/build_for_x86_noble.yml new file mode 100644 index 00000000..d901f185 --- /dev/null +++ b/.github/workflows/build_for_x86_noble.yml @@ -0,0 +1,60 @@ +name: build on x86 lunar + +on: [push] + + +jobs: + build: + #runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 + env: + CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} + steps: + - name: Maximize build space + uses: easimon/maximize-build-space@master + with: + root-reserve-mb: 512 + swap-size-mb: 1024 + remove-dotnet: 'true' + remove-android: 'true' + remove-haskell: 'true' + overprovision-lvm: 'true' + - name: remove even more + run: | + sudo apt-get purge -y \ + '^llvm-.*' \ + 'php.*' \ + '^mongodb-.*' \ + '^mysql-.*' \ + azure-cli \ + google-chrome-stable \ + firefox \ + powershell \ + microsoft-edge-stable \ + mono-devel + sudo apt-get autoremove -y + sudo apt-get clean + - name: test + run: | + echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV + echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV + + - name: Checkout repository and submodules + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Building OpenHD in CHROOT + run: | + git clone https://github.com/OpenHD/ChrootCompilationTest /opt/ChrootCompilationTest + mkdir -p /opt/ChrootCompilationTest/additionalFiles + git clone https://github.com/OpenHD/rtl8812au -b ${{ github.ref_name }} /opt/ChrootCompilationTest/additionalFiles/ --recursive + echo $CLOUDSMITH_API_KEY > /opt/ChrootCompilationTest/additionalFiles/cloudsmith_api_key.txt + echo "AMD64" > /opt/ChrootCompilationTest/additionalFiles/arch.txt + echo "ubuntu" > /opt/ChrootCompilationTest/additionalFiles/distro.txt + echo "lunar" > /opt/ChrootCompilationTest/additionalFiles/flavor.txt + echo "${{ github.ref_name }}" > /opt/ChrootCompilationTest/additionalFiles/repo.txt + + cd /opt/ChrootCompilationTest/ + sudo apt update + sudo bash install_dep.sh + sudo bash ./build.sh x86-noble $API_KEY ubuntu noble