Setup our CD
This commit is contained in:
parent
6566e665df
commit
0ebceb554c
3 changed files with 88 additions and 394 deletions
44
.github/workflows/cd.yml
vendored
Normal file
44
.github/workflows/cd.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: CD
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build_linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- run: cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LIBRETRO_CORE=ON .
|
||||
- run: cmake --build . --parallel 2
|
||||
|
||||
- name: ZIP Release
|
||||
uses: papeloto/action-zip@v1
|
||||
with:
|
||||
files: swanstation_libretro.so
|
||||
dest: swanstation_libretro.so.zip
|
||||
|
||||
- name: Get release
|
||||
id: get_release
|
||||
uses: bruceadams/get-release@v1.2.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||
asset_path: swanstation_libretro.so.zip
|
||||
asset_name: swanstation-Linux-x86_64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue