Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
719336d43a | |||
d20a658ce8 | |||
7e9d251948 | |||
38b6daeb01 |
5
.github/workflows/mac-universal.yml
vendored
5
.github/workflows/mac-universal.yml
vendored
@@ -28,6 +28,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: test butler
|
||||
run: './.github/workflows/scripts/butler_push.sh test'
|
||||
shell: bash
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.configuration == 'Release' && matrix.os.name != 'macos' }}
|
||||
|
||||
# Download macos-intel
|
||||
- uses: robinraju/release-downloader@v1
|
||||
id: download
|
||||
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -60,6 +60,11 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: test butler
|
||||
run: './.github/workflows/scripts/butler_push.sh test'
|
||||
shell: bash
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.configuration == 'Release' && matrix.os.name != 'macos' }}
|
||||
|
||||
- name: Download dependency build
|
||||
uses: robinraju/release-downloader@v1
|
||||
with:
|
||||
|
30
.github/workflows/scripts/butler_push.sh
vendored
30
.github/workflows/scripts/butler_push.sh
vendored
@@ -1,5 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Pass any argument to make it a dry run (for putting at the start of your CI, to catch failure early)
|
||||
test="${1}"
|
||||
|
||||
butler_channel=""
|
||||
butler_exe=""
|
||||
release_dir=""
|
||||
@@ -7,22 +10,39 @@ if [ "$BUILD_OS" = "ubuntu" ]; then
|
||||
butler_channel=linux-amd64
|
||||
butler_exe=butler
|
||||
release_dir="linux"
|
||||
|
||||
# TEMPORARY
|
||||
butler_exe=.github/workflows/scripts/linux/butler/butler
|
||||
elif [ "$BUILD_OS" = "windows" ]; then
|
||||
butler_channel=windows-amd64
|
||||
butler_exe=butler.exe
|
||||
release_dir="windows"
|
||||
|
||||
# TEMPORARY
|
||||
butler_exe=.github/workflows/scripts/win/butler/butler.exe
|
||||
elif [ "$BUILD_OS" = "macos" ]; then
|
||||
butler_channel=darwin-amd64
|
||||
butler_exe=butler
|
||||
release_dir="macos"
|
||||
|
||||
# TEMPORARY
|
||||
butler_exe=.github/workflows/scripts/mac/butler/butler
|
||||
fi
|
||||
|
||||
# -L follows redirects
|
||||
# -O specifies output name
|
||||
curl -L -o butler.zip https://broth.itch.ovh/butler/${butler_channel}/LATEST/archive/default
|
||||
unzip butler.zip
|
||||
|
||||
# Butler download is disabled because something is wrong with the automated download links
|
||||
## -L follows redirects
|
||||
## -O specifies output name
|
||||
# if [ ! -f ./${butler_exe} ]; then
|
||||
# curl -L -o butler.zip https://broth.itch.ovh/butler/${butler_channel}/LATEST/archive/default
|
||||
# unzip butler.zip
|
||||
# fi
|
||||
|
||||
# GNU unzip tends to not set the executable bit even though it's set in the .zip
|
||||
chmod +x ${butler_exe}
|
||||
# just a sanity check run (and also helpful in case you're sharing CI logs)
|
||||
./${butler_exe} -V
|
||||
./${butler_exe} push "build/Blades of Exile/" nqn/blades-of-exile:${release_dir}
|
||||
|
||||
if [ -z "$test" ]; then
|
||||
./${butler_exe} push "build/Blades of Exile/" nqn/blades-of-exile:${release_dir}
|
||||
fi
|
BIN
.github/workflows/scripts/linux/butler/7z.so
vendored
Executable file
BIN
.github/workflows/scripts/linux/butler/7z.so
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/linux/butler/butler
vendored
Executable file
BIN
.github/workflows/scripts/linux/butler/butler
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/linux/butler/libc7zip.so
vendored
Executable file
BIN
.github/workflows/scripts/linux/butler/libc7zip.so
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/mac/butler/7z.so
vendored
Executable file
BIN
.github/workflows/scripts/mac/butler/7z.so
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/mac/butler/butler
vendored
Executable file
BIN
.github/workflows/scripts/mac/butler/butler
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/mac/butler/libc7zip.dylib
vendored
Executable file
BIN
.github/workflows/scripts/mac/butler/libc7zip.dylib
vendored
Executable file
Binary file not shown.
BIN
.github/workflows/scripts/win/butler/7z.dll
vendored
Normal file
BIN
.github/workflows/scripts/win/butler/7z.dll
vendored
Normal file
Binary file not shown.
BIN
.github/workflows/scripts/win/butler/butler.exe
vendored
Normal file
BIN
.github/workflows/scripts/win/butler/butler.exe
vendored
Normal file
Binary file not shown.
BIN
.github/workflows/scripts/win/butler/c7zip.dll
vendored
Normal file
BIN
.github/workflows/scripts/win/butler/c7zip.dll
vendored
Normal file
Binary file not shown.
Submodule rsrc/scenarios/custom updated: 8aa7d3b0ef...01e0ea01e9
Reference in New Issue
Block a user