-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(release,ci,github-ci): add support for macos build
- Loading branch information
Showing
9 changed files
with
176 additions
and
18 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
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 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
env: | ||
PYTHONIOENCODING: utf-8 | ||
PYTHONLEGACYWINDOWSSTDIO: utf-8 | ||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-11] | ||
steps: | ||
- name: Install 7z | ||
run: brew install p7zip | ||
- name: cmake | ||
run: brew install cmake | ||
- name: Checkout git repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
submodules: 'true' | ||
- name: Build zips & 7zs | ||
run: python main/compiler/scripts/release.py | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: | | ||
main/compiler/comp_output_test/yaksha_v*.zip | ||
main/compiler/comp_output_test/yaksha_v*.7z |
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,56 @@ | ||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) | ||
#define YK_R_OS_WIN | ||
#elif __APPLE__ | ||
#define YK_R_OS_MAC | ||
#elif __linux__ | ||
#define YK_R_OS_LINUX | ||
#else | ||
#error "Not supported" | ||
#endif | ||
|
||
#ifdef YK_R_OS_WIN | ||
#include "reproc/reproc/src/clock.windows.c" | ||
#else | ||
#include "reproc/reproc/src/clock.posix.c" | ||
#endif | ||
|
||
#include "reproc/reproc/src/drain.c" | ||
|
||
|
||
#ifdef YK_R_OS_WIN | ||
#include "reproc/reproc/src/error.windows.c" | ||
#include "reproc/reproc/src/handle.windows.c" | ||
#include "reproc/reproc/src/init.windows.c" | ||
#else | ||
#include "reproc/reproc/src/error.posix.c" | ||
#include "reproc/reproc/src/handle.posix.c" | ||
#include "reproc/reproc/src/init.posix.c" | ||
#endif | ||
|
||
|
||
|
||
#include "reproc/reproc/src/options.c" | ||
|
||
#ifdef YK_R_OS_WIN | ||
#include "reproc/reproc/src/pipe.windows.c" | ||
#include "reproc/reproc/src/process.windows.c" | ||
#include "reproc/reproc/src/redirect.windows.c" | ||
#else | ||
#include "reproc/reproc/src/pipe.posix.c" | ||
#include "reproc/reproc/src/process.posix.c" | ||
#include "reproc/reproc/src/redirect.posix.c" | ||
#endif | ||
|
||
|
||
|
||
#include "reproc/reproc/src/redirect.c" | ||
#include "reproc/reproc/src/reproc.c" | ||
#include "reproc/reproc/src/run.c" | ||
#include "reproc/reproc/src/strv.c" | ||
|
||
|
||
#ifdef YK_R_OS_WIN | ||
#include "reproc/reproc/src/utf.windows.c" | ||
#else | ||
#include "reproc/reproc/src/utf.posix.c" | ||
#endif |
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
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