From 4c94a1f3e1c640458ec28957f23740eb6c942fb6 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Mon, 18 Mar 2024 03:36:11 +0100 Subject: [PATCH] Update build_test.yml --- .github/workflows/build_test.yml | 67 ++++++++------------------------ 1 file changed, 16 insertions(+), 51 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index fb303e0..a89df84 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -1,61 +1,26 @@ -name: build on x86 lunar +name: Build test on: [push] +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release jobs: build: - #runs-on: ubuntu-18.04 - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest 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: test - run: | - echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV - echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV + - uses: actions/checkout@v4 + with: + submodules: recursive - - 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: 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/rtl88x2bu -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-lunar $API_KEY ubuntu lunar + - name: build on x86 + run: | + ls -a /usr/src/ + sudo apt update + sudo apt install -y build-essential + mkdir -p /opt/additionalFiles + make ARCH=x86 CROSS_COMPILE= -C /usr/src/linux-headers-6.5.0-1016-azure M=/opt/additionalFiles modules + ls \ No newline at end of file