Skip to content

Commit

Permalink
Create Portable nightly builds for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Jul 6, 2023
1 parent 20a6343 commit d7c9eb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_windows_mu4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ jobs:
fi
DO_PUBLISH='false'
if [[ "${{ github.event.inputs.publish }}" == "on" ]]; then
if [[ "${{ github.event.inputs.publish }}" == "on" || "$BUILD_MODE" == "nightly_build" ]]; then
DO_PUBLISH='true'
if [ -z "${{ secrets.OSUOSL_SSH_ENCRYPT_SECRET }}" ]; then
echo "warning: not set OSUOSL_SSH_ENCRYPT_SECRET, publish disabled"
Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
if: env.DO_PUBLISH == 'true'
shell: bash
run: |
bash ./build/ci/tools/osuosl/publish.sh -s ${{ secrets.OSUOSL_SSH_ENCRYPT_SECRET }} --os windows -v 4
bash ./build/ci/tools/osuosl/publish.sh -s ${{ secrets.OSUOSL_SSH_ENCRYPT_SECRET }} --os windows -v 4 --arch x86_64-portable
- name: Upload artifacts on GitHub
if: env.DO_BUILD == 'true'
uses: actions/upload-artifact@v3
Expand Down
4 changes: 3 additions & 1 deletion build/ci/tools/osuosl/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ if [ "$BUILD_MODE" == "nightly_build" ]; then
echo "Delete old MuseScoreNightly files"
number_to_keep=42 # includes the one we just uploaded and the symlink to it
if [ "$OS" == "linux" ]; then
((++number_to_keep)) # one extra for the zsync file
((++number_to_keep)) # one extra for the zsync file
elif [ "$OS" == "windows" ]; then
((number_to_keep *= 2)) # two nightlies each night, namely portable and normal
fi
ssh -i $SSH_KEY musescore-nightlies@ftp-osl.osuosl.org "cd ~/ftp/$FTP_PATH; ls MuseScoreNightly* -t | tail -n +${number_to_keep} | xargs rm -f"
fi
Expand Down

0 comments on commit d7c9eb1

Please sign in to comment.