-
Notifications
You must be signed in to change notification settings - Fork 43
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
a3ce692
commit f175fc6
Showing
5 changed files
with
28 additions
and
61 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 |
---|---|---|
|
@@ -17,9 +17,9 @@ jobs: | |
kernel_path: "../../../siyuan-android/app/libs/kernel.aar" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/ | ||
path: siyuan-note | ||
|
||
- name: clone origin and apply patches | ||
run: | | ||
|
@@ -45,12 +45,13 @@ jobs: | |
mkdir -p app/libs/ | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
cache-dependency-path: "**/*.sum" | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
|
@@ -66,19 +67,14 @@ jobs: | |
run: pnpm run build | ||
working-directory: ${{ github.workspace }}/siyuan-note/siyuan/app | ||
|
||
- name: Remove Build Directory | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/build | ||
|
||
- name: gomobile | ||
working-directory: ${{ github.workspace }}/go | ||
run: | | ||
go install golang.org/x/mobile/cmd/gomobile@latest | ||
gomobile init | ||
- name: Set up java | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
@@ -122,7 +118,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Android | ||
uses: actions/upload-release-asset@v1 | ||
uses: shogo82148/actions-upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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 |
---|---|---|
|
@@ -18,9 +18,9 @@ jobs: | |
target: "ios" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/ | ||
path: siyuan-note | ||
|
||
- name: clone origin and apply patches | ||
run: | | ||
|
@@ -37,12 +37,13 @@ jobs: | |
git clone --depth=1 https://github.com/siyuan-note/siyuan-ios.git | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
cache-dependency-path: "**/*.sum" | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
|
@@ -58,11 +59,6 @@ jobs: | |
run: pnpm run build | ||
working-directory: ${{ github.workspace }}/siyuan-note/siyuan/app | ||
|
||
- name: Remove Build Directory | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/build | ||
|
||
- name: gomobile | ||
working-directory: ${{ github.workspace }}/go | ||
run: | | ||
|
@@ -101,7 +97,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Android | ||
uses: actions/upload-release-asset@v1 | ||
uses: shogo82148/actions-upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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 |
---|---|---|
|
@@ -45,9 +45,9 @@ jobs: | |
suffix: "win.exe" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/ | ||
path: siyuan-note | ||
|
||
- name: clone origin and apply patches | ||
run: | | ||
|
@@ -74,9 +74,10 @@ jobs: | |
working-directory: ${{ github.workspace }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
cache-dependency-path: "**/*.sum" | ||
|
||
- name: Set up goversioninfo | ||
run: go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo && go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo | ||
|
@@ -90,7 +91,7 @@ jobs: | |
GOARCH: ${{ matrix.config.goarch }} | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
|
@@ -106,31 +107,6 @@ jobs: | |
run: pnpm run build | ||
working-directory: ${{ github.workspace }}/siyuan-note/siyuan/app | ||
|
||
- name: Remove Build Directory | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/build | ||
|
||
- name: Remove Kernel Directory for Linux | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/kernel-linux | ||
|
||
- name: Remove Kernel Directory for Windows | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/kernel | ||
|
||
- name: Remove Kernel Directory for macOS | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/kernel-darwin | ||
|
||
- name: Remove Kernel Directory for macOS ARM64 | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: ${{ github.workspace }}/siyuan-note/siyuan/app/kernel-darwin-arm64 | ||
|
||
- name: Generate Icon Resource and Properties/Version Info For Windows | ||
run: ${{ github.workspace }}\go\${{ matrix.config.gobin }}\goversioninfo -platform-specific=true -icon="resource\icon.ico" -manifest="resource\goversioninfo.exe.manifest" | ||
if: contains( matrix.config.goos, 'windows') | ||
|
@@ -158,7 +134,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload Electron App | ||
uses: actions/upload-release-asset@v1 | ||
uses: shogo82148/actions-upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
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