mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Merge artifacts (#258)
* Merge artifacts * Fix windows artifact name * Update main.yml --------- Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
This commit is contained in:
parent
e4671902bb
commit
0b404a51cb
55
.github/workflows/main.yml
vendored
55
.github/workflows/main.yml
vendored
@ -22,10 +22,10 @@ jobs:
|
|||||||
python amalgamate.py
|
python amalgamate.py
|
||||||
cd amalgamated
|
cd amalgamated
|
||||||
cl.exe /std:c++17 /EHsc /utf-8 /Ox /I. /DPK_ENABLE_OS=1 main.cpp /link /out:pkpy.exe
|
cl.exe /std:c++17 /EHsc /utf-8 /Ox /I. /DPK_ENABLE_OS=1 main.cpp /link /out:pkpy.exe
|
||||||
- uses: actions/upload-artifact@v4
|
# - uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: amalgamated
|
# name: amalgamated
|
||||||
path: amalgamated/pkpy.exe
|
# path: amalgamated/pkpy.exe
|
||||||
build_win32:
|
build_win32:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
@ -111,9 +111,9 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
python amalgamate.py
|
python amalgamate.py
|
||||||
cd plugins/macos/pocketpy
|
cd plugins/macos/pocketpy
|
||||||
mkdir -p output/macos
|
mkdir output
|
||||||
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
|
||||||
cp -r build/Release/pocketpy.bundle output/macos
|
cp -r build/Release/pocketpy.bundle output
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos
|
||||||
@ -161,3 +161,46 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ios
|
name: ios
|
||||||
path: output
|
path: output
|
||||||
|
|
||||||
|
merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [ build_win32, build_linux, build_darwin, build_android, build_ios ]
|
||||||
|
steps:
|
||||||
|
- name: "Create output directory"
|
||||||
|
run: "mkdir $GITHUB_WORKSPACE/output"
|
||||||
|
|
||||||
|
- name: "Merge win32"
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: windows
|
||||||
|
path: $GITHUB_WORKSPACE/output/windows
|
||||||
|
|
||||||
|
- name: "Merge linux"
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: linux
|
||||||
|
path: $GITHUB_WORKSPACE/output/linux
|
||||||
|
|
||||||
|
- name: "Merge darwin"
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: macos
|
||||||
|
path: $GITHUB_WORKSPACE/output/macos
|
||||||
|
|
||||||
|
- name: "Merge android"
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: android
|
||||||
|
path: $GITHUB_WORKSPACE/output/android
|
||||||
|
|
||||||
|
- name: "Merge ios"
|
||||||
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: ios
|
||||||
|
path: $GITHUB_WORKSPACE/output/ios
|
||||||
|
|
||||||
|
- name: "Upload merged artifact"
|
||||||
|
uses: actions/upload-artifact@v4.3.3
|
||||||
|
with:
|
||||||
|
name: all-in-one
|
||||||
|
path: $GITHUB_WORKSPACE/output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user