-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload native launcher to GitHub release assets
- Loading branch information
1 parent
4f8b7b0
commit 4b7781f
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,58 @@ jobs: | |
env: | ||
UPLOAD_GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
build-native-launchers: | ||
runs-on: ${{ matrix.OS }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
OS: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Don't convert LF to CRLF during checkout | ||
if: runner.os == 'Windows' | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- uses: coursier/[email protected] | ||
- uses: coursier/[email protected] | ||
with: | ||
jvm: 8 | ||
apps: | ||
- name: Copy launcher | ||
run: ./mill -i ci.copyNativeLauncher artifacts/ | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: native-launchers | ||
path: artifacts/ | ||
if-no-files-found: error | ||
retention-days: 2 | ||
|
||
upload-native-launchers: | ||
needs: build-native-launchers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- uses: coursier/[email protected] | ||
- uses: coursier/[email protected] | ||
with: | ||
jvm: 8 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: launchers | ||
path: artifacts/ | ||
- run: ./mill -i ci.uploadNativeLaunchers | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
shell: bash | ||
env: | ||
UPLOAD_GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
|
||
update-docker-images: | ||
needs: release | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters