From 906f73cab31ee53824420819dfeeb3e6040dbf95 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 19 Nov 2023 14:07:40 +0100 Subject: [PATCH] Switch CI to build on archlinux image. --- .github/workflows/linux.yml | 39 ++++++++++++++++++++++++ .github/workflows/{gcc.yml => macos.yml} | 13 ++------ 2 files changed, 41 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/linux.yml rename .github/workflows/{gcc.yml => macos.yml} (75%) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000..a8a2bad5 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,39 @@ +name: linux + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-22.04 + container: archlinux:base-devel + steps: + - uses: actions/checkout@v2 + - name: Install linux libraries + run: pacman -Syu --noconfirm && pacman -S --noconfirm --needed freetype2 capstone tbb debuginfod wayland dbus libxkbcommon libglvnd meson + - name: Profiler GUI + run: make -j`nproc` -C profiler/build/unix debug release + - name: Update utility + run: make -j`nproc` -C update/build/unix debug release + - name: Capture utility + run: make -j`nproc` -C capture/build/unix debug release + - name: Csvexport utility + run: make -j`nproc` -C csvexport/build/unix debug release + - name: Import-chrome utility + run: make -j`nproc` -C import-chrome/build/unix debug release + - name: Library + run: make -j`nproc` -C library/unix debug release + - name: Library (meson) + run: meson setup -Dprefix=$PWD/install build && meson compile -C build && meson install -C build + - name: Test application + run: | + make -j`nproc` -C test + make -j`nproc` -C test clean + make -j`nproc` -C test TRACYFLAGS=-DTRACY_ON_DEMAND + make -j`nproc` -C test clean + make -j`nproc` -C test TRACYFLAGS="-DTRACY_DELAYED_INIT -DTRACY_MANUAL_LIFETIME" + make -C test -B ../public/TracyClient.o DEFINES='-DTRACY_DEMANGLE' diff --git a/.github/workflows/gcc.yml b/.github/workflows/macos.yml similarity index 75% rename from .github/workflows/gcc.yml rename to .github/workflows/macos.yml index d578a155..54697835 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,4 @@ -name: gcc +name: macos on: push: @@ -9,19 +9,10 @@ on: jobs: build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-22.04, macOS-latest] - + runs-on: macOS-latest steps: - uses: actions/checkout@v2 - - name: Install linux libraries - if: ${{ matrix.os == 'ubuntu-22.04' }} - run: sudo apt-get update && sudo apt-get -y install libdbus-1-dev libcapstone-dev libtbb-dev libdebuginfod-dev libxkbcommon-dev libegl-dev libwayland-dev meson - name: Install macos libraries - if: ${{ matrix.os == 'macOS-latest' }} run: brew install capstone tbb pkg-config glfw meson - name: Profiler GUI run: make -j`nproc` -C profiler/build/unix debug release