RikoBot-Sharp/.github/workflows/ci.yml

52 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2020-02-17 19:42:21 +01:00
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
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:19:58 +01:00
- name: Build osx-x64
2020-02-17 20:04:48 +01:00
run: dotnet publish -c debug -r osx-x64 /p:PublishSingleFile=true
2020-02-17 20:19:58 +01:00
- name: Upload linux-x64
2020-02-17 19:42:21 +01:00
uses: actions/upload-artifact@v1.0.0
with:
# Artifact name
2020-02-17 20:19:58 +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:15:26 +01:00
path: bin/Debug/netcoreapp3.1/linux-x64/publish/
2020-02-17 20:19:58 +01:00
- 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/