forked from RinCat/RTL88x2BU-Linux-Driver
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (40 loc) · 1.69 KB
/
build_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: 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/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