mirror of
https://github.com/R2Northstar/Northstar
synced 2025-09-25 11:30:50 +02:00
Compare commits
6 Commits
v1.19.11-r
...
v1.20.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
937a1cdbba | ||
![]() |
de87f41b45 | ||
![]() |
d6d2dfe47d | ||
![]() |
c829a40caa | ||
![]() |
a11a37e710 | ||
![]() |
72e8e50d77 |
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@@ -20,24 +20,24 @@ jobs:
|
||||
build-northstar:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Wait for launcher release build to be ready
|
||||
timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
|
||||
run:
|
||||
bash wait_dl.sh
|
||||
- name: Download compiled launcher
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
||||
- name: Download DiscordRPC plugin
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarDiscordRPC/releases/download/v4/northstar-discord-rpc.zip"
|
||||
- name: Download compiled stubs
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarStubs/releases/download/v1/NorthstarStubs.zip"
|
||||
- name: Checkout release files
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ env.NORTHSTAR_VERSION }}
|
||||
path: northstar
|
||||
- name: Wait for launcher release build to be ready
|
||||
timeout-minutes: 30 # Only wait for 30 minutes. If we take longer, something probably broke
|
||||
run:
|
||||
bash northstar/wait_for_launcher_dl.sh $NORTHSTAR_VERSION
|
||||
- name: Download compiled launcher
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarLauncher/releases/download/${{ env.NORTHSTAR_VERSION }}/northstar-launcher.zip"
|
||||
- name: Download DiscordRPC plugin
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarDiscordRPC/releases/download/v5/northstar-discord-rpc.zip"
|
||||
- name: Download compiled stubs
|
||||
run:
|
||||
wget "https://github.com/R2Northstar/NorthstarStubs/releases/download/v1/NorthstarStubs.zip"
|
||||
- name: Checkout core mods
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
- name: Cleanup root Northstar repository files
|
||||
working-directory: northstar
|
||||
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
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
@@ -6,14 +6,14 @@ if [ -z "$1" ]; then
|
||||
exit 1
|
||||
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
|
||||
|
||||
# Loop until the response code changes
|
||||
while true; do
|
||||
response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url)
|
||||
if [ $response -ne 200 ]; then
|
||||
echo "Response is not 200. Retrying in $wait_time_seconds seconds."
|
||||
if [ $response -eq 404 ]; then
|
||||
echo "Response is 404. Retrying in $wait_time_seconds seconds."
|
||||
sleep $wait_time_seconds
|
||||
else
|
||||
echo "Site is accessible with response code $response."
|
||||
|
Reference in New Issue
Block a user