forked from Dadoum/Provision
-
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.
Port to Windows, and attempt adding an action.
- Loading branch information
Showing
9 changed files
with
172 additions
and
49 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,32 @@ | ||
name: x86_64 builds | ||
|
||
on: push | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build-anisette-server-windows-x86_64: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: dlang-community/setup-dlang@v1 | ||
with: | ||
compiler: ldc-latest | ||
|
||
- name: Build | ||
run: dub build :anisette-server -b release -c "static" | ||
|
||
- name: Rename | ||
run: mv "${{github.workspace}}/bin/provision_anisette-server.exe" "${{github.workspace}}/bin/anisette-server-x86_64.exe" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: anisette-server-x86_64 | ||
path: | | ||
${{github.workspace}}/bin/anisette-server-x86_64.exe |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module provision.compat.macos; | ||
|
||
version(OSX): | ||
|
||
import core.stdc.errno; | ||
import core.stdc.stdlib; | ||
import core.stdc.string; | ||
import core.sys.posix.fcntl; | ||
import core.sys.posix.sys.stat; | ||
import core.sys.posix.sys.time; | ||
import core.sys.posix.unistd; | ||
|
||
template traceCall(alias U) { | ||
import std.traits; | ||
import slf4d; | ||
auto ref traceCall(Parameters!U params) { | ||
getLogger().traceF!"CALL // %s"(__traits(identifier, U)); | ||
return U(params); | ||
} | ||
} | ||
|
||
alias __errno_location = traceCall!(errno); | ||
alias strncpy = traceCall!(core.stdc.string.strncpy); | ||
alias lstat = traceCall!(core.sys.posix.sys.stat.lstat); | ||
alias fstat = traceCall!(core.sys.posix.sys.stat.fstat); | ||
alias malloc = core.stdc.stdlib.malloc; | ||
alias free = core.stdc.stdlib.free; | ||
alias gettimeofday = traceCall!(core.sys.posix.sys.time.gettimeofday); | ||
alias open = traceCall!(core.sys.posix.fcntl.open); | ||
alias close = traceCall!(core.sys.posix.unistd.close); | ||
alias read = traceCall!(core.sys.posix.unistd.read); | ||
alias write = traceCall!(core.sys.posix.unistd.write); | ||
alias mkdir = traceCall!(core.sys.posix.fcntl.mkdir); | ||
alias chmod = traceCall!(core.sys.posix.fcntl.chmod); | ||
alias ftruncate = traceCall!(core.sys.posix.unistd.ftruncate); | ||
alias umask = traceCall!(core.sys.posix.sys.stat.umask); |
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