mirror of
				https://github.com/R2Northstar/Northstar
				synced 2025-10-30 23:50:52 +01:00 
			
		
		
		
	Compare commits
	
		
			12 Commits
		
	
	
		
			v1.19.3-rc
			...
			feat/debug
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 9b77206591 | ||
|   | 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 }}" | ||||||
|  |  | ||||||
							
								
								
									
										16
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -20,6 +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 | ||||||
|  |         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 |       - 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" | ||||||
| @@ -29,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: | ||||||
| @@ -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 }} | ||||||
							
								
								
									
										29
									
								
								wait_for_launcher_dl.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										29
									
								
								wait_for_launcher_dl.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,29 @@ | |||||||
|  | #!/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 | ||||||
|  |  | ||||||
|  | echo "Checking $url" | ||||||
|  |  | ||||||
|  | # Loop until the response code changes | ||||||
|  | while true; do | ||||||
|  |     response=$(curl --silent --output /dev/null --write-out "%{http_code}" $url) | ||||||
|  |     echo "Got response $response" | ||||||
|  |     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