Skip to content

Commit

Permalink
Interlude - CI - try and save standalone build:
Browse files Browse the repository at this point in the history
Very useful so we can quickly deploy a test exe to users - especially if
you don't have access to a windows machine.

WIP:
- better glob pattern/ do cp in same step or even better
- try using already packed one (renaming it) -> nope:
actions/upload-artifact#39

This works but does not create the Apps foler (duh) and does not put
everything in mopy - see

https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
search for "flattened"

https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts

@@ -37,5 +37,5 @@ jobs:
         python -m pytest
-#    - name: Copy executable
-    - name: Standalone Executable
+    - name: Copy executable
       run: cp "scripts/build/standalone/dist/Wrye Bash.exe" Mopy
+    - name: Standalone Executable
       uses: actions/upload-artifact@v2

a step cannot have both the `uses` and `run` keys

https://docs.github.com/en/actions/learn-github-actions/expressions#format
https://docs.github.com/en/actions/learn-github-actions/contexts
format trick from
https://github.community/t/concatenate-env-variables-and-strings/128201/3

scripts/build.py: (empty) env folder was included in standalone
List of ignores from that pack_standalone.ignores

Under #473
  • Loading branch information
Utumno committed Dec 19, 2021
1 parent c9a5036 commit 587c770
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/wb_ci.yaml
Expand Up @@ -35,3 +35,33 @@ jobs:
- name: Test Wrye Bash
run: |
python -m pytest
- name: Copy executable/license files
run: |
cp "scripts/build/standalone/dist/Wrye Bash.exe" Mopy
cp LICENSE.md Mopy/LICENSE.md
# - name: Create Apps folder # does not work
# run: mkdir Mopy/Apps
- name: Upload Standalone Build Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ format('Wrye Bash CI {0}.{1}', github.ref_name, github.sha) }}
path: |
Mopy/*
Mopy/LICENSE.md
!Mopy/**.py
!Mopy/**.pyw
!Mopy/**.pyd
!Mopy/**.bat
!Mopy/**.template
!Mopy/redist
!Mopy/__pycache__
!Mopy/bash/**.py
!Mopy/bash/__pycache__
!Mopy/bash/basher
!Mopy/bash/bosh
!Mopy/bash/brec
!Mopy/bash/env
!Mopy/bash/game
!Mopy/bash/gui
!Mopy/bash/patcher
!Mopy/bash/tests
1 change: 1 addition & 0 deletions scripts/build.py
Expand Up @@ -299,6 +299,7 @@ def pack_standalone(version):
u'Mopy/bash/basher',
u'Mopy/bash/bosh',
u'Mopy/bash/brec',
u'Mopy/bash/env',
u'Mopy/bash/game',
u'Mopy/bash/gui',
u'Mopy/bash/patcher',
Expand Down

0 comments on commit 587c770

Please sign in to comment.