mirror of
https://github.com/R2Northstar/Northstar
synced 2025-10-28 18:30:51 +01:00
Compare commits
5 Commits
v1.19.11-r
...
v1.20.0-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de87f41b45 | ||
|
|
d6d2dfe47d | ||
|
|
c829a40caa | ||
|
|
a11a37e710 | ||
|
|
72e8e50d77 |
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -20,10 +20,15 @@ jobs:
|
|||||||
build-northstar:
|
build-northstar:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout release files
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ env.NORTHSTAR_VERSION }}
|
||||||
|
path: northstar
|
||||||
- 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 wait_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"
|
||||||
@@ -33,11 +38,6 @@ jobs:
|
|||||||
- name: Download compiled stubs
|
- name: Download compiled stubs
|
||||||
run:
|
run:
|
||||||
wget "https://github.com/R2Northstar/NorthstarStubs/releases/download/v1/NorthstarStubs.zip"
|
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: Checkout core mods
|
- name: Checkout core mods
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -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