Skip to content

Commit

Permalink
Update build_parallel.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NtskwK committed Jun 10, 2024
1 parent a7ac2df commit 056d6d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,18 @@ jobs:
- name: building and pack
run: |
mkdir "dist/win-unpacked/bin/OTB-9.0.0-Win64"
pip install -r requirements.txt
pip install nuitka
nuitka main.py
nuitka main.py --standalone
npm install
npm run pack
cp -r "data" "main.dist"
dir
ren "main.dist" "bin"
cp -r "bin" "dist/win-unpacked/"
cp -r "bin" "dist/win-unpacked"
cp -r "OTB-9.0.0-Win64" "dist/win-unpacked/bin"
cp -r "data" "dist/win-unpacked/bin"
dir
dir dist
dir "dist/win-unpacked"
dir "dist/win-unpacked/bin"
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/build_parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: |
pip install -r requirements.txt
pip install nuitka
nuitka main.py
nuitka main.py --standalone
cp -r "data" "main.dist"
ren "main.dist" "bin"
Expand Down Expand Up @@ -115,14 +115,15 @@ jobs:
run: |
npm install
npm run pack
tree
- name: Upload
uses: actions/upload-artifact@v4
with:
# Artifact name
name: electron_app
# A file, directory or wildcard pattern that describes what to upload
path: "build/win-unpacke"
path: "dist/win-unpacked"

pack_app:
needs: [download_otb, build_python_app, build_electron_app]
Expand Down Expand Up @@ -171,18 +172,21 @@ jobs:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: OTB-9.0.0-Win64
name: bin

- uses: actions/download-artifact@v4
with:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: electron_app
path: win_64

- run: |
7z x -o"win_64" "bin.zip"
7z x -o"win_64/bin" "OTB-9.0.0-Win64.zip"
dir
dir bin
dir electron_app
dir OTB-9.0.0-Win64
dir "win_64"
dir "win_64/bin"
dir "win_64/bin/OTB-9.0.0-Win64"

0 comments on commit 056d6d6

Please sign in to comment.