mirror of
https://github.com/R2Northstar/Northstar
synced 2025-09-21 00:50:50 +02:00
Compare commits
12 Commits
v1.17.1-rc
...
v1.20.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
937a1cdbba | ||
![]() |
de87f41b45 | ||
![]() |
d6d2dfe47d | ||
![]() |
c829a40caa | ||
![]() |
a11a37e710 | ||
![]() |
72e8e50d77 | ||
![]() |
8fb1f315bb | ||
![]() |
4dccb376ec | ||
![]() |
ec0491e1e3 | ||
![]() |
cd971e5c0d | ||
![]() |
587363f257 | ||
![]() |
711676ec8a |
20
.github/workflows/add-to-project.yml
vendored
Normal file
20
.github/workflows/add-to-project.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: add-to-project
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
add-to-project:
|
||||||
|
name: Add to project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/add-to-project@v0.5.0
|
||||||
|
with:
|
||||||
|
project-url: "https://github.com/orgs/R2Northstar/projects/3"
|
||||||
|
github-token: "${{ secrets.PROJECT_BOARD_TOKEN }}"
|
||||||
|
|
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@@ -20,20 +20,24 @@ jobs:
|
|||||||
build-northstar:
|
build-northstar:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- 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
|
- name: Checkout release files
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.NORTHSTAR_VERSION }}
|
ref: ${{ env.NORTHSTAR_VERSION }}
|
||||||
path: northstar
|
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
|
- name: Checkout core mods
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +64,7 @@ jobs:
|
|||||||
mkdir -p northstar/bin/x64_dedi
|
mkdir -p northstar/bin/x64_dedi
|
||||||
|
|
||||||
unzip northstar-discord-rpc.zip -d northstar/R2Northstar/plugins
|
unzip northstar-discord-rpc.zip -d northstar/R2Northstar/plugins
|
||||||
|
|
||||||
unzip NorthstarStubs.zip -d northstar/bin/x64_dedi
|
unzip NorthstarStubs.zip -d northstar/bin/x64_dedi
|
||||||
unzip northstar-launcher.zip -d northstar
|
unzip northstar-launcher.zip -d northstar
|
||||||
rsync -avr --exclude="Northstar.Coop" --exclude=".git*" northstar-mods/. northstar/R2Northstar/mods
|
rsync -avr --exclude="Northstar.Coop" --exclude=".git*" northstar-mods/. northstar/R2Northstar/mods
|
||||||
@@ -78,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:
|
||||||
|
17
.github/workflows/post-to-mastodon.yml
vendored
Normal file
17
.github/workflows/post-to-mastodon.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Post-to-Mastodon
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
toot:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Send toot to Mastodon
|
||||||
|
id: mastodon
|
||||||
|
uses: cbrgm/mastodon-github-action@v1
|
||||||
|
with:
|
||||||
|
message: "We just released Northstar ${{ github.event.release.tag_name }}\n\n${{ github.event.release.html_url }}"
|
||||||
|
env:
|
||||||
|
MASTODON_URL: ${{ secrets.MASTODON_URL }}
|
||||||
|
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
|
26
wait_for_launcher_dl.sh
Executable file
26
wait_for_launcher_dl.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if contains command line arg
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Missing command-line argument."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
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 -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."
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# 10 second sleep just in case we hit some weird race condition
|
||||||
|
# where files are still being uploaded but release is done
|
||||||
|
sleep 10
|
Reference in New Issue
Block a user