RikoBot-Sharp/.github/workflows/ci.yml
2020-02-17 20:19:58 +01:00

52 lines
1.6 KiB
YAML

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Build linux-x64
run: dotnet publish -c debug -r linux-x64 /p:PublishSingleFile=true
- name: Build linux-arm
run: dotnet publish -c debug -r linux-arm /p:PublishSingleFile=true
- name: Build win-x64
run: dotnet publish -c debug -r win-x64 /p:PublishSingleFile=true
- name: Build osx-x64
run: dotnet publish -c debug -r osx-x64 /p:PublishSingleFile=true
- name: Upload linux-x64
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
name: RSSBot-linux-x64-${{github.sha}}
# Directory containing files to upload
path: bin/Debug/netcoreapp3.1/linux-x64/publish/
- name: Upload linux-arm
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
name: RSSBot-linux-arm-${{github.sha}}
# Directory containing files to upload
path: bin/Debug/netcoreapp3.1/linux-arm/publish/
- name: Upload win-x64
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
name: RSSBot-win-x64-${{github.sha}}
# Directory containing files to upload
path: bin/Debug/netcoreapp3.1/win-x64/publish/
- name: Upload osx-x64
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
name: RSSBot-osx-x64-${{github.sha}}
# Directory containing files to upload
path: bin/Debug/netcoreapp3.1/osx-x64/publish/