forked from mpromonet/webrtc-streamer
-
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.
cross compiling try with github action
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 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,50 @@ | ||
name: C/C++ CI linux croos compilation arm64 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
buildtype: [Debug, Release] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: pkg | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends g++ autoconf automake libtool xz-utils libasound2-dev libpulse-dev libgtk-3-dev cmake p7zip-full | ||
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | ||
- name: depot_tools | ||
run: | | ||
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git | ||
echo "$(pwd)/depot_tools" >> $GITHUB_PATH | ||
- name: fetch webrtc | ||
run: | | ||
mkdir webrtc | ||
pushd webrtc | ||
fetch --no-history --nohooks webrtc | ||
sed -i -e "s|'src/resources'],|'src/resources'],'condition':'rtc_include_tests==true',|" src/DEPS | ||
gclient sync | ||
popd | ||
- name: build | ||
run: | | ||
cmake -DWEBRTCROOT=$(pwd)/webrtc -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY -DWEBRTCDESKTOPCAPTURE=OFF . | ||
make | ||
- name: cpack | ||
run: | | ||
rm -f *.tar.gz | ||
cpack | ||
echo "artifactPath=$(ls *.tar.gz)" >> $GITHUB_ENV | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.artifactPath }} | ||
path: ${{ env.artifactPath }} |