forked from XmacsLabs/mogan
-
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.
Co-authored-by: 沈浪熊猫儿 <[email protected]>
- Loading branch information
Showing
21 changed files
with
309 additions
and
142 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,68 @@ | ||
name: Build and Test by WASM | ||
|
||
on: | ||
push: | ||
branches: [ branch-1.2 ] | ||
paths: | ||
- 'src/**' | ||
- '!src/Plugins/Macos/**' | ||
- '!src/Plugins/Windows/**' | ||
- '!src/Plugins/Unix/**' | ||
- 'tests/**' | ||
- 'xmake.lua' | ||
- '.github/workflows/ci-xmake-wasm.yml' | ||
pull_request: | ||
branches: [ branch-1.2 ] | ||
paths: | ||
- 'src/**' | ||
- '!src/Plugins/Macos/**' | ||
- '!src/Plugins/Windows/**' | ||
- '!src/Plugins/Unix/**' | ||
- 'tests/**' | ||
- 'xmake.lua' | ||
- '.github/workflows/ci-xmake-wasm.yml' | ||
|
||
jobs: | ||
wasmbuild: | ||
runs-on: ubuntu-22.04 | ||
if: always() | ||
steps: | ||
- uses: xmake-io/github-action-setup-xmake@v1 | ||
with: | ||
xmake-version: branch@dev | ||
- name: update repo | ||
run: | | ||
xrepo update-repo | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: set XMAKE_GLOBALDIR | ||
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV | ||
- name: cache packages from xrepo | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages | ||
key: ${{ runner.os }}-xrepo-wasm-${{ hashFiles('**/packages.lua') }} | ||
- name: cache xmake | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ github.workspace }}/build/.build_cache | ||
key: ${{ runner.os }}-xmake-build-${{ hashFiles('**/xmake.lua') }} | ||
- name: Install Qt wasm | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: 6.5.2 | ||
arch: wasm_singlethread | ||
host: 'linux' | ||
target: 'desktop' | ||
cache: 'true' | ||
# workarounds in https://github.com/jurplel/install-qt-action/issues/181 | ||
aqtversion: '==3.1.*' | ||
py7zrversion: '==0.20.*' | ||
extra: '--autodesktop' | ||
- name: config | ||
run: xmake config --policies=build.ccache -o ${{ runner.workspace }}/build -vD -p wasm -m releasedbg --yes | ||
- name: build | ||
run: xmake build libmogan |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
#!/usr/bin/env elvish | ||
|
||
xrepo install -y "emscripten 3.1.42" | ||
xmake config -p wasm --qt=~/6.5.2/wasm_singlethread/ --yes | ||
|
||
var pkg_info = (xrepo fetch --json emscripten | from-json) | ||
var emsdk_path = $pkg_info[0][artifacts][installdir] | ||
set-env EMSDK $emsdk_path | ||
|
||
xmake config --yes -p wasm -vD |
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 |
---|---|---|
|
@@ -94,4 +94,3 @@ QTMPipeLink::killProcess (int msecs) { | |
if (! waitForFinished (msecs)) kill (); | ||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,3 @@ public slots: | |
}; | ||
|
||
#endif // QTM_PIPE_LINK | ||
|
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 |
---|---|---|
|
@@ -571,4 +571,3 @@ WinQTMPrinterSettings::availablePrinters() { | |
} | ||
|
||
#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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,5 +98,3 @@ qt_printer_widget_rep::showDialog () { | |
if (!is_nil (commandAfterExecution)) | ||
commandAfterExecution (); | ||
} | ||
|
||
|
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#define BUILD_USER "@CONFIG_USER@" | ||
#define BUILD_DATE "@VERSION_BUILD@" | ||
#define TEXMACS_VERSION "@VERSION@" | ||
#define LOLLY_VERSION "@LOLLY_VERSION@" |
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
Oops, something went wrong.