-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
cd898c8
commit a26ee56
Showing
2 changed files
with
67 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: build Circuit Artist artifacts | ||
on: [ push ] | ||
|
||
jobs: | ||
build-artifacts: | ||
strategy: | ||
matrix: | ||
kinds: | ||
- machine: macos-12 | ||
# language=sh | ||
build: | | ||
set -euo pipefail | ||
mkdir objdir | ||
cd objdir | ||
cmake -G 'Unix Makefiles' -DCMAKE_VERBOSE_MAKEFILE=ON .. | ||
echo 'Working around a custom_command silly ...' >&2 | ||
make -C ../LuaJIT || true | ||
ls -la ../LuaJIT/src/*.so | ||
cmake --build . | ||
ls -la | ||
- machine: windows-2019 | ||
# thankfully, windows-2019 ships with cmake in %ProgramFiles% | ||
# language=PowerShell | ||
build: | | ||
mkdir objdir | ||
cd objdir | ||
cmake .. | ||
echo "Working around a custom_command silly ..." | ||
make -C ../LuaJIT | ||
echo "let CI pass for the time being, showing it compiles" | ||
$ErrorActionPreference = 'Continue' | ||
cmake --build . | ||
gci -Verbose -Force | ||
runs-on: ${{ matrix.kinds.machine }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: cache luajit download | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ hashFiles('CMakeLists.txt') }} | ||
path: | | ||
third_party/*.gz | ||
- name: doit | ||
run: ${{ matrix.kinds.build }} | ||
- name: capture built artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: built circuit-artifact executable | ||
# this in lieu of messing with CPack | ||
path: | | ||
objdir/ca* | ||
objdir/*.dll | ||
objdir/*.dylib | ||
objdir/*.so | ||
LuaJIT/src/*.dll | ||
LuaJIT/src/*.dylib | ||
LuaJIT/src/*.so | ||
retention-days: 7 # shrug |
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