2020-02-17 19:42:21 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-02-17 20:04:48 +01:00
|
|
|
env:
|
|
|
|
dotnet_ver: 3.1
|
2020-02-17 19:42:21 +01:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET Core
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 3.1.101
|
2020-02-17 20:04:48 +01:00
|
|
|
- name: Build linux-x64
|
2020-02-17 19:42:21 +01:00
|
|
|
run: dotnet publish -c debug -r linux-x64 /p:PublishSingleFile=true
|
2020-02-17 20:04:48 +01:00
|
|
|
- name: Build linux-arm
|
|
|
|
run: dotnet publish -c debug -r linux-arm /p:PublishSingleFile=true
|
|
|
|
- name: Build win-x64
|
2020-02-17 20:07:01 +01:00
|
|
|
run: dotnet publish -c debug -r win-x64 /p:PublishSingleFile=true
|
2020-02-17 20:04:48 +01:00
|
|
|
- name: Build osx-64
|
|
|
|
run: dotnet publish -c debug -r osx-x64 /p:PublishSingleFile=true
|
2020-02-17 19:42:21 +01:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v1.0.0
|
|
|
|
with:
|
|
|
|
# Artifact name
|
2020-02-17 20:04:48 +01:00
|
|
|
name: RSSBot-linux-x64-$GITHUB_SHA
|
2020-02-17 19:42:21 +01:00
|
|
|
# Directory containing files to upload
|
2020-02-17 20:04:48 +01:00
|
|
|
path: bin/Debug/netcoreapp$dotnet_ver/linux-x64/publish/
|