Skip to content

Commit

Permalink
Configured workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Mar 9, 2024
1 parent 0934fa2 commit 31752a1
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/windows-msys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,23 @@
name: Windows-MSys

on:
schedule:
- cron: "0 6 20 * 6"
push:
branches: [ '*' ]
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- '.cirrus.yml'
- '.github/workflows/*.yml'
- '!.github/workflows/windows-msys.yml'
pull_request:
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- '.cirrus.yml'
- '.github/workflows/*.yml'
- '!.github/workflows/windows-msys.yml'
workflow_dispatch:
Expand All @@ -55,6 +59,7 @@ concurrency:

env:
BUILD_TYPE: Release
CCACHE_FLD: ccache

jobs:
build:
Expand Down Expand Up @@ -106,6 +111,7 @@ jobs:
fmt:p
dlfcn:p
ninja:p
ccache:p
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -117,14 +123,31 @@ jobs:

- name: Configure
run: |
cmake -B build -DWITH_TESTS=${{ matrix.setup.tests }} -DUSE_JEMALLOC=OFF -DNIXPKGS_DWARFS_VERSION_OVERRIDE=tebako \
-DFOLLY_NO_EXCEPTION_TRACER=ON -DTEBAKO_BUILD_SCOPE=${{ matrix.setup.scope }} -DCMAKE_INSTALL_PREFIX=install -GNinja .
echo "CCACHE_DIR=$PWD/${{ env.CCACHE_FLD }}" >> $GITHUB_ENV
mkdir -p ${{ env.CCACHE_FLD }}
cmake -B build \
-DFOLLY_NO_EXCEPTION_TRACER=ON \
-DUSE_JEMALLOC=OFF \
-DWITH_MAN_PAGES=OFF \
-DNIXPKGS_DWARFS_VERSION_OVERRIDE=tebako \
-DWITH_TESTS=${{ matrix.setup.tests }} \
-DTEBAKO_BUILD_SCOPE=${{ matrix.setup.scope }} \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-GNinja .
- name: Load Cache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_FLD }}
key: |
ccache-${{ env.BUILD_TYPE }}-${{ matrix.env.sys }}-${{ matrix.env.CC }}-${{ matrix.setup.scope }}-${{ github.ref }}-${{ github.sha }}
restore-keys: |
ccache-${{ env.BUILD_TYPE }}-${{ matrix.env.sys }}-${{ matrix.env.CC }}-${{ matrix.setup.scope }}-${{ github.ref }}-
ccache-${{ env.BUILD_TYPE }}-${{ matrix.env.sys }}-${{ matrix.env.CC }}-${{ matrix.setup.scope }}-
- name: Build
run: |
cmake --build build --parallel "$CORES"
run: cmake --build build --parallel "$CORES"

- name: Test
if: ${{ matrix.setup.tests == 'ON' }}
run: |
ctest --test-dir build --output-on-failure --parallel "$CORES"
run: ctest --test-dir build --output-on-failure --parallel "$CORES"

0 comments on commit 31752a1

Please sign in to comment.