mirror of
https://github.com/R2Northstar/Northstar
synced 2025-10-04 08:50:49 +02:00
Compare commits
3 Commits
v1.19.11-r
...
v1.20.0-rc
Author | SHA1 | Date | |
---|---|---|---|
![]() |
de87f41b45 | ||
![]() |
d6d2dfe47d | ||
![]() |
c829a40caa |
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Wait for launcher release build to be ready
|
- name: Wait for launcher release build to be ready
|
||||||
timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
|
timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
|
||||||
run:
|
run:
|
||||||
bash northstar/wait_for_launcher_dl.sh
|
bash northstar/wait_for_launcher_dl.sh $NORTHSTAR_VERSION
|
||||||
- name: Download compiled launcher
|
- name: Download compiled launcher
|
||||||
run:
|
run:
|
||||||
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- name: Cleanup root Northstar repository files
|
- name: Cleanup root Northstar repository files
|
||||||
working-directory: northstar
|
working-directory: northstar
|
||||||
run: |
|
run: |
|
||||||
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example
|
rm -rf .git .github .gitignore *.md LICENSE thunderstore .ci.env.example *.sh
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@@ -6,14 +6,14 @@ if [ -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
url="https://github.com/R2Northstar/NorthstarLauncher/releases/tag/$1"
|
url="https://github.com/R2Northstar/NorthstarLauncher/releases/download/$1/northstar-launcher.zip"
|
||||||
wait_time_seconds=60
|
wait_time_seconds=60
|
||||||
|
|
||||||
# Loop until the response code changes
|
# Loop until the response code changes
|
||||||
while true; do
|
while true; do
|
||||||
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
|
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
|
||||||
if [ $response -ne 200 ]; then
|
if [ $response -eq 404 ]; then
|
||||||
echo "Response is not 200. Retrying in $wait_time_seconds seconds."
|
echo "Response is 404. Retrying in $wait_time_seconds seconds."
|
||||||
sleep $wait_time_seconds
|
sleep $wait_time_seconds
|
||||||
else
|
else
|
||||||
echo "Site is accessible with response code $response."
|
echo "Site is accessible with response code $response."
|
||||||
|
Reference in New Issue
Block a user