-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
75 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
|
||
jobs: | ||
stubs: | ||
name: NorthstarStubs | ||
runs-on: ubuntu-latest | ||
container: docker.io/library/alpine:3.15.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
apk add mingw-w64-gcc meson | ||
meson setup --cross-file misc/mingw-w64-cross.txt --prefix / build | ||
meson install -C build --destdir destdir | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: NorthstarStubs | ||
path: build/destdir/bin/*.dll | ||
if-no-files-found: error |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
name: NorthstarStubs | ||
runs-on: ubuntu-latest | ||
container: docker.io/library/alpine:3.15.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
apk add mingw-w64-gcc meson zip | ||
meson setup --cross-file misc/mingw-w64-cross.txt --prefix / build | ||
meson install -C build --destdir destdir | ||
- name: Create zip | ||
run: | | ||
zip -9 -j NorthstarStubs.zip build/destdir/bin/*.dll | ||
sha1sum NorthstarStubs.zip | ||
- name: Create release | ||
id: release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
tag_name: ${{github.ref}} | ||
release_name: ${{github.ref}} | ||
draft: true | ||
prerelease: false | ||
|
||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
upload_url: ${{steps.release.outputs.upload_url}} | ||
asset_path: ./NorthstarStubs.zip | ||
asset_name: NorthstarStubs.zip | ||
asset_content_type: application/zip |