-
-
Notifications
You must be signed in to change notification settings - Fork 577
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
Showing
7 changed files
with
107 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
name: Build - Ubuntu - ARM | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- 'src/**' | ||
push: | ||
paths: | ||
- 'src/**' | ||
|
||
env: | ||
CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
MAKEFLAGS: '-j 4' | ||
|
||
jobs: | ||
job: | ||
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} | ||
name: ${{ matrix.os }}-${{ matrix.buildtype }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [Beats-ARM] | ||
buildtype: [linux-release, linux-debug] | ||
include: | ||
- os: Beats-ARM | ||
triplet: x64-linux | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
if: github.ref != 'refs/heads/main' | ||
uses: fkirc/skip-duplicate-actions@master | ||
with: | ||
concurrent_skipping: 'same_content' | ||
cancel_others: true | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@main | ||
|
||
- name: Install Linux Dependencies | ||
run: > | ||
sudo apt-get update && sudo apt-get install ccache linux-headers-$(uname -r) | ||
- name: CCache | ||
uses: hendrikmuhs/ccache-action@main | ||
with: | ||
max-size: "1G" | ||
key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} | ||
restore-keys: | | ||
ccache-${{ matrix.os }} | ||
- name: Restore artifacts and install vcpkg | ||
id: vcpkg-step | ||
run: | | ||
vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ') | ||
echo "vcpkg commit ID: $vcpkgCommitId" | ||
echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV | ||
- name: Get vcpkg commit id from vcpkg.json | ||
uses: lukka/run-vcpkg@main | ||
with: | ||
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | ||
vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }} | ||
|
||
- name: Get latest CMake and ninja | ||
uses: lukka/get-cmake@main | ||
|
||
- name: Run CMake | ||
uses: lukka/run-cmake@main | ||
with: | ||
configurePreset: ${{ matrix.buildtype }} | ||
buildPreset: ${{ matrix.buildtype }} | ||
configurePresetAdditionalArgs: "['-DBUILD_TESTS=ON']" | ||
|
||
- name: Create and Upload Artifact | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: canary-${{ matrix.os }}-${{ matrix.buildtype }}-${{ github.sha }} | ||
path: | | ||
${{ github.workspace }}/build/${{ matrix.buildtype }}/bin/ | ||
- name: Run Unit Tests | ||
run: | | ||
cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/unit | ||
ctest --verbose | ||
# - name: Run Integration Tests | ||
# run: | | ||
# cd ${{ github.workspace }}/build/${{ matrix.buildtype }}/tests/integration | ||
# ctest --verbose |
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
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