forked from libc0607/rtl88x2eu-20230815
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7e1c51
commit efe1416
Showing
22 changed files
with
494 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: build on rpi | ||
|
||
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/rtl88x2eu -b ${{ github.ref_name }} /opt/ChrootCompilationTest/additionalFiles/ --recursive | ||
echo $CLOUDSMITH_API_KEY > /opt/ChrootCompilationTest/additionalFiles/cloudsmith_api_key.txt | ||
echo "armhf" > /opt/ChrootCompilationTest/additionalFiles/arch.txt | ||
echo "debian" > /opt/ChrootCompilationTest/additionalFiles/distro.txt | ||
echo "bullseye" > /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 pi-bullseye $API_KEY debian bullseye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: build on x86 noble | ||
|
||
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/OpenHD-ChrootCompiler /opt/OpenHD-ChrootCompiler | ||
mkdir -p /opt/OpenHD-ChrootCompiler/additionalFiles | ||
git clone https://github.com/OpenHD/rtl88x2eu -b ${{ github.ref_name }} /opt/ChrootCompilationTest/additionalFiles/ --recursive | ||
chmod +x /opt/ChrootCompilationTest/additionalFiles/build_chroot.sh | ||
echo $CLOUDSMITH_API_KEY > /opt/OpenHD-ChrootCompiler/additionalFiles/cloudsmith_api_key.txt | ||
echo "AMD64" > /opt/OpenHD-ChrootCompiler/additionalFiles/arch.txt | ||
echo "ubuntu" > /opt/OpenHD-ChrootCompiler/additionalFiles/distro.txt | ||
echo "noble" > /opt/OpenHD-ChrootCompiler/additionalFiles/flavor.txt | ||
echo "${{ github.ref_name }}" > /opt/OpenHD-ChrootCompiler/additionalFiles/repo.txt | ||
cd /opt/OpenHD-ChrootCompiler/ | ||
sudo apt update | ||
sudo bash install_dep.sh | ||
sudo bash ./build.sh x86-minimal $API_KEY ubuntu noble | ||
- name: debug | ||
run: | | ||
ls -a | ||
cp -r /opt/OpenHD-ChrootCompiler/out/*.deb . | ||
- name: Upload to Github | ||
uses: 'actions/upload-artifact@v2' | ||
with: | ||
name: "rtl8812au" | ||
path: | | ||
*.deb | ||
*.log | ||
if-no-files-found: error | ||
|
||
- name: Push | ||
id: push | ||
uses: cloudsmith-io/action@master | ||
with: | ||
api-key: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
command: "push" | ||
format: "deb" | ||
owner: "openhd" | ||
repo: release | ||
distro: "ubuntu" | ||
release: "noble" | ||
republish: "true" # needed ONLY if version is not changing | ||
file: "*.deb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/OpenHD-ChrootCompiler /opt/OpenHD-ChrootCompiler | ||
mkdir -p /opt/OpenHD-ChrootCompiler/additionalFiles | ||
git clone https://github.com/OpenHD/rtl88x2eu -b ${{ github.ref_name }} /opt/OpenHD-ChrootCompiler/additionalFiles/ --recursive | ||
echo $CLOUDSMITH_API_KEY > /opt/OpenHD-ChrootCompiler/additionalFiles/cloudsmith_api_key.txt | ||
echo "AMD64" > /opt/OpenHD-ChrootCompiler/additionalFiles/arch.txt | ||
echo "ubuntu" > /opt/OpenHD-ChrootCompiler/additionalFiles/distro.txt | ||
echo "lunar" > /opt/OpenHD-ChrootCompiler/additionalFiles/flavor.txt | ||
echo "${{ github.ref_name }}" > /opt/OpenHD-ChrootCompiler/additionalFiles/repo.txt | ||
cd /opt/OpenHD-ChrootCompiler/ | ||
sudo apt update | ||
sudo bash install_dep.sh | ||
sudo bash ./build.sh x86-lunar $API_KEY ubuntu lunar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build test | ||
|
||
on: [push] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
env: | ||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: build on x86 | ||
run: | | ||
sudo apt update | ||
sudo apt install -y build-essential | ||
make | ||
ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.