Skip to content

Commit

Permalink
Fix Github Actions (#27)
Browse files Browse the repository at this point in the history
CI: testing ARM64 build
  • Loading branch information
ABeltramo authored Jun 18, 2023
1 parent d2d29f2 commit ca4d4c4
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 5 deletions.
64 changes: 60 additions & 4 deletions .github/workflows/linux-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,61 @@ on:
- "docker"

jobs:
test-arm:
timeout-minutes: 30
runs-on: [ self-hosted, ARM64 ] # self-hosted, using Oracle free tier instance
steps:
- uses: actions/checkout@v3

- name: Prepare environment
run: |
sudo apt-get update -y
sudo apt-get install -y \
g++-11 \
cmake \
ninja-build \
libboost-locale-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libboost-stacktrace-dev \
libssl-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libwayland-dev libwayland-server0 libinput-dev libxkbcommon-dev libgbm-dev \
libcurl4-openssl-dev \
libpulse-dev \
libevdev-dev \
libudev-dev \
libdrm-dev \
libpci-dev
- name: Setup Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable

- name: Configure build
working-directory: ${{runner.workspace}}
env:
CXX: g++-11
run: |
cmake -Bbuild \
-H$GITHUB_WORKSPACE \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_CXX_STANDARD=17 \
-DTEST_UINPUT=ON \
-DTEST_DOCKER=ON \
-DLINK_RUST_WAYLAND=ON \
-DTEST_RUST_WAYLAND=OFF \
-DTEST_NVIDIA=OFF \
-DCARGO_TARGET_BUILD=aarch64-unknown-linux-gnu \
-G Ninja
- name: Build tests + lib
working-directory: ${{runner.workspace}}/build
run: ninja -j 4 wolftests

- name: Run tests
working-directory: ${{runner.workspace}}/build/tests
run: ./wolftests

test:
runs-on: ubuntu-22.04
strategy:
Expand Down Expand Up @@ -72,11 +127,12 @@ jobs:
# Note: $GITHUB_WORKSPACE is distinct from ${{runner.workspace}}.
# This is important
run: |
cmake -Bbuild -H$GITHUB_WORKSPACE \
-DBUILD_SHARED_LIBS=${{ matrix.shared }} \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
cmake -Bbuild \
-H$GITHUB_WORKSPACE \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_CXX_STANDARD=${{ matrix.std }} \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DBUILD_SHARED_LIBS=${{ matrix.shared }} \
-DCATCH_DEVELOPMENT_BUILD=ON \
-DTEST_UINPUT=OFF \
-DTEST_DOCKER=OFF \
Expand Down
4 changes: 3 additions & 1 deletion docs/modules/dev/pages/manual_build.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
.Build dependencies
[source,bash]
....
apt install -y ninja-build cmake clang libboost-locale-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libboost-stacktrace-dev libssl-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libevdev-dev libdrm-dev libpci-dev
apt install -y git ninja-build cmake clang libboost-locale-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libboost-stacktrace-dev libssl-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libevdev-dev libdrm-dev libpci-dev libinput-dev libxkbcommon-dev libgbm-dev libpulse-dev libcurl4-openssl-dev
....

Install Rust following the https://www.rust-lang.org/tools/install[official docs] or avoid building our custom compositor by passing `-DLINK_RUST_WAYLAND=OFF` to cmake.

.Compile
[source,bash]
....
Expand Down

0 comments on commit ca4d4c4

Please sign in to comment.