From 7aa12398b2181de72bfa3679eff5cb0fed4a2b16 Mon Sep 17 00:00:00 2001 From: mpromonet Date: Mon, 16 Mar 2020 20:24:27 +0100 Subject: [PATCH] try to store github flow artefact --- .../workflows/{ccpp.yml => ccpp-linux.yml} | 22 ++++++++++++++----- .github/workflows/ccpp-windows.yml | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) rename .github/workflows/{ccpp.yml => ccpp-linux.yml} (71%) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp-linux.yml similarity index 71% rename from .github/workflows/ccpp.yml rename to .github/workflows/ccpp-linux.yml index d28cf00b..42fbeb94 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp-linux.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: C/C++ CI linux on: [push] @@ -9,10 +9,13 @@ jobs: steps: - uses: actions/checkout@v1 + - name: pkg run: sudo apt-get install -y --no-install-recommends g++ autoconf automake libtool xz-utils libasound2-dev libgtk-3-dev cmake p7zip-full + - name: depot_tools run: git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git + - name: fetch webrtc run: | export PATH=$(pwd)/depot_tools:$PATH @@ -22,10 +25,17 @@ jobs: sed -i -e "s|'src/resources'],|'src/resources'],'condition':'rtc_include_tests==true',|" src/DEPS gclient sync popd - - name: cmake + + - name: build run: | export PATH=$(pwd)/depot_tools:$PATH - cmake -DWEBRTCROOT=./webrtc -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ . - - name: make - run: | - make VERBOSE=1 + cmake -DWEBRTCROOT=$(pwd)/webrtc -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ . + make + + - name: cpack + run: cpack -B $(pwd)/artifact + + - uses: actions/upload-artifact@v1 + with: + name: pkg + path: artifact diff --git a/.github/workflows/ccpp-windows.yml b/.github/workflows/ccpp-windows.yml index b46c91aa..5ab35890 100644 --- a/.github/workflows/ccpp-windows.yml +++ b/.github/workflows/ccpp-windows.yml @@ -35,7 +35,7 @@ jobs: PYTHONIOENCODING: UTF-8 GCLIENT_PY3: 1 - - name: cmake + - name: build shell: cmd run: | dir /b /s "C:\Program Files (x86)\vcvars64.bat"