File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88name : MacOS build
99
10- on : [push]
10+ on :
11+ push :
12+ schedule :
13+ - cron : ' 0 0 15 * *'
1114
1215jobs :
1316 build-macos-debug :
3033 uses : actions/checkout@v4
3134 - run : git describe --always --dirty
3235
36+ - name : Get version from git tag
37+ run : echo "GIT_DESCRIBE=$(git describe --always --dirty)" >> $GITHUB_ENV
38+
3339 - name : Configure CMake
3440 run : cmake -B build -DCMAKE_OSX_ARCHITECTURES="${{ matrix.osx_arch }}" -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}"
3541
3844
3945 - name : Test
4046 run : cmake --build build --target test
47+
48+ - name : Upload build directory if failed
49+ if : ${{ failure() }}
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : libargp-${{ env.GIT_DESCRIBE }}-macos-build
53+ path : ./
54+ if-no-files-found : error
Original file line number Diff line number Diff line change 77
88name : Ubuntu build
99
10- on : [push]
10+ on :
11+ push :
12+ schedule :
13+ - cron : ' 0 0 15 * *'
1114
1215jobs :
1316 build-ubuntu :
Original file line number Diff line number Diff line change 11# #############################################################################
2- # Copyright 2022, 2024 Leon Lynch
2+ # Copyright 2022, 2024-2025 Leon Lynch
33#
44# This file is licensed under the terms of the LGPL v2.1 license.
55# See LICENSE file.
66# #############################################################################
77
88name : Windows build
99
10- on : [push]
10+ on :
11+ push :
12+ schedule :
13+ - cron : ' 0 0 15 * *'
1114
1215jobs :
1316 build-windows-msys2-debug :
5255 - name : Configure Git
5356 run : |
5457 git config --global core.autocrlf true
55- git describe --always --dirty
58+ echo "GIT_DESCRIBE=$( git describe --always --dirty)" >> $GITHUB_ENV
5659
5760 - name : Configure CMake
5861 run : cmake -G Ninja -B build -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}"
6265
6366 - name : Test
6467 run : cmake --build build --target test
68+
69+ - name : Upload build directory if failed
70+ if : ${{ failure() }}
71+ uses : actions/upload-artifact@v4
72+ with :
73+ name : libargp-${{ env.GIT_DESCRIBE }}-windows-build
74+ path : ./
75+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments