mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 21:14:49 +00:00
Create build.yml
This commit is contained in:
parent
de93a98a07
commit
d1977673aa
1 changed files with 43 additions and 0 deletions
43
.github/workflows/build.yml
vendored
Normal file
43
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
name: NX_CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
build_NX:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Extract owner and repo
|
||||
uses: jungwinter/split@v1
|
||||
id: repo
|
||||
with:
|
||||
seperator: /
|
||||
msg: ${{ github.repository }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: master
|
||||
submodules: recursive
|
||||
- name: Use Docker Build
|
||||
uses: actions-hub/docker/cli@master
|
||||
env:
|
||||
SKIP_LOGIN: true
|
||||
- run: |
|
||||
docker run -t --rm --name builder -v `pwd`:`pwd` -w `pwd` zerofo/ns_dev:0.4 make dist-no-debug -j8
|
||||
|
||||
- name: Upload file
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: ./out/*zip
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.release_token }}
|
||||
file: ./out/*zip
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
file_glob: true
|
Loading…
Add table
Reference in a new issue