-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add github actions * ci: fix invocation on linux * more portable __thiscalls * ci: unix does not have --verbose? * ci: install latest cmake * build: remove hardcoded cross compile settings from cmakelists * deps: try ezxml without unistd * ci: fix cmake generation step * Fix call convention compiler compatibility * ci: sigh * build: set C version * cmake: check if lto is supported * try to make msvc happy * hello msvc? * build: is this how you disable warnings? * these do not need to be thiscalls * just cast the pointer * use __declspec(dllexport) instead of a .def file * ci: fix build step? * use ISO C name for _strdup * fix signed/unsigned mismatch * Strip dbg_print in release build on msvc * flip it
- Loading branch information
1 parent
969e96c
commit ac39f9c
Showing
5 changed files
with
46 additions
and
12 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,36 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Build on Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Prepare release DLL | ||
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -A Win32 | ||
- name: Build release DLL | ||
run: cmake --build build --verbose | ||
- name: Make artifact | ||
run: | | ||
mkdir -p artifact | ||
cp build/Debug/aoc-builtin-rms.dll artifact | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: aoc-builtin-rms | ||
path: artifact | ||
|
||
cross-build: | ||
name: Build on Linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: sudo apt-get update | ||
- name: Install cross compiler | ||
run: sudo apt-get install mingw-w64 cmake | ||
- name: Run CMake | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=`which i686-w64-mingw32-gcc` -DCMAKE_CXX_COMPILER=`which i686-w64-mingw32-g++` | ||
- name: Compile | ||
run: cmake --build build |
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
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
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