Update CI files

This commit is contained in:
Carles Fernandez 2022-11-25 13:58:00 +01:00
parent be8a0a2a5a
commit c3e163d839
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 33 additions and 33 deletions

View File

@ -16,7 +16,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: install dependencies - name: install dependencies
run: sudo apt-get update && sudo apt-get install ninja-build libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr libpugixml-dev libpcap-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev libmatio-dev googletest protobuf-compiler libprotobuf-dev python3-mako liborc-0.4-dev run: sudo apt-get update && sudo apt-get install -y ninja-build cmake libboost-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libboost-chrono-dev libboost-serialization-dev liblog4cpp5-dev gnuradio-dev gr-osmosdr libpugixml-dev libpcap-dev libblas-dev liblapack-dev libarmadillo-dev libgflags-dev libgoogle-glog-dev libgnutls-openssl-dev libmatio-dev googletest protobuf-compiler libprotobuf-dev python3-mako liborc-0.4-dev
- name: configure - name: configure
run: cd build && cmake -GNinja .. run: cd build && cmake -GNinja ..
- name: build - name: build
@ -29,7 +29,7 @@ jobs:
build-macos: build-macos:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: brew update && brew install ninja pkg-config hdf5 automake armadillo lapack gflags glog gnuradio log4cpp openssl pugixml protobuf && pip3 install mako run: brew update && brew install ninja pkg-config hdf5 automake armadillo lapack gflags glog gnuradio log4cpp openssl pugixml protobuf && pip3 install mako
- name: configure - name: configure
@ -44,7 +44,7 @@ jobs:
clang-format: clang-format:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: brew install clang-format run: brew install clang-format
- name: run clang-format - name: run clang-format
@ -55,7 +55,7 @@ jobs:
clang-tidy: clang-tidy:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: brew update && brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio log4cpp openssl pugixml protobuf && ln -s $(brew --prefix llvm)/bin/clang-tidy /usr/local/bin && ln -s $(brew --prefix llvm)/bin/clang-apply-replacements /usr/local/bin && ln -s $(brew --prefix llvm)/bin/run-clang-tidy /usr/local/bin && pip3 install mako run: brew update && brew install llvm pkg-config hdf5 armadillo lapack gflags glog gnuradio libmatio log4cpp openssl pugixml protobuf && ln -s $(brew --prefix llvm)/bin/clang-tidy /usr/local/bin && ln -s $(brew --prefix llvm)/bin/clang-apply-replacements /usr/local/bin && ln -s $(brew --prefix llvm)/bin/run-clang-tidy /usr/local/bin && pip3 install mako
- name: Prepare run - name: Prepare run
@ -68,7 +68,7 @@ jobs:
cpplint: cpplint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: sudo apt-get install python3-pip && sudo pip3 install cpplint run: sudo apt-get install python3-pip && sudo pip3 install cpplint
- name: run checks - name: run checks
@ -89,7 +89,7 @@ jobs:
prettier-markdown: prettier-markdown:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: sudo npm install --global prettier run: sudo npm install --global prettier
- name: check markdown - name: check markdown
@ -98,7 +98,7 @@ jobs:
cmakelint: cmakelint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: | run: |
sudo python -m pip install --upgrade pip sudo python -m pip install --upgrade pip
@ -131,7 +131,7 @@ jobs:
volk-gnsssdr-ubuntu: volk-gnsssdr-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: sudo apt install python3-mako liborc-dev run: sudo apt install python3-mako liborc-dev
- name: configure - name: configure
@ -146,7 +146,7 @@ jobs:
volk-gnsssdr-macos: volk-gnsssdr-macos:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: pip3 install mako run: pip3 install mako
- name: configure - name: configure
@ -159,7 +159,7 @@ jobs:
volk-gnsssdr-macos-xcode: volk-gnsssdr-macos-xcode:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3
- name: install dependencies - name: install dependencies
run: pip3 install mako run: pip3 install mako
- name: configure - name: configure

View File

@ -3,11 +3,11 @@
on: on:
push: push:
paths: paths:
- 'src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**' - "src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**"
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
paths: paths:
- 'src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**' - "src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**"
workflow_dispatch: workflow_dispatch:
name: Build volk-gnssdr on Android NDK name: Build volk-gnssdr on Android NDK
@ -27,30 +27,30 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3.0.0 - uses: actions/checkout@v3.0.0
- name: Update repositories - name: Update repositories
run: sudo apt update run: sudo apt update
# All dependencies # All dependencies
- name: Install dependencies - name: Install dependencies
run: sudo apt install -y cmake openjdk-11-jre-headless wget unzip make python3-mako run: sudo apt install -y cmake openjdk-11-jre-headless wget unzip make python3-mako
# Setup Android SDK, and auto-accept licenses # Setup Android SDK, and auto-accept licenses
- name: Install Android SDK - name: Install Android SDK
run: wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip && mkdir android-sdk-linux && unzip -qq android-sdk.zip -d android-sdk-linux && export ANDROID_HOME=./android-sdk-linux && echo y | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --update && (echo y; echo y; echo y; echo y; echo y; echo y; echo y; echo y) | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --licenses run: wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip && mkdir android-sdk-linux && unzip -qq android-sdk.zip -d android-sdk-linux && export ANDROID_HOME=./android-sdk-linux && echo y | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --update && (echo y; echo y; echo y; echo y; echo y; echo y; echo y; echo y) | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=android-sdk-linux --licenses
# Call SDKManager to install the Android NDK # Call SDKManager to install the Android NDK
- name: Install Android NDK - name: Install Android NDK
run: $GITHUB_WORKSPACE/android-sdk-linux/cmdline-tools/bin/sdkmanager --sdk_root=$GITHUB_WORKSPACE/android-sdk-linux --install "ndk;24.0.8215888" --channel=3 run: $GITHUB_WORKSPACE/android-sdk-linux/cmdline-tools/bin/sdkmanager --sdk_root=$GITHUB_WORKSPACE/android-sdk-linux --install "ndk;24.0.8215888" --channel=3
# Setup build directory # Setup build directory
- name: Setup ${{ matrix.arch.name }} - name: Setup ${{ matrix.arch.name }}
shell: bash shell: bash
run: cd $GITHUB_WORKSPACE/ && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/android-sdk-linux/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{ matrix.arch.name }} -DANDROID_PLATFORM=android-24 ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr run: cd $GITHUB_WORKSPACE/ && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/android-sdk-linux/ndk/24.0.8215888/build/cmake/android.toolchain.cmake -DANDROID_ABI=${{ matrix.arch.name }} -DANDROID_PLATFORM=android-24 ../src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr
# Build # Build
- name: Build ${{ matrix.arch.name }} - name: Build ${{ matrix.arch.name }}
shell: bash shell: bash
run: cd $GITHUB_WORKSPACE/build && make run: cd $GITHUB_WORKSPACE/build && make
continue-on-error: ${{ matrix.arch.allow_fail }} continue-on-error: ${{ matrix.arch.allow_fail }}