forked from asik/FixedMath.Net
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.63 KB
/
ci.yml
File metadata and controls
58 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
push:
branches:
- master
tags:
- v*
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.202
- name: Build
run: dotnet build src --configuration Release
- name: Test
run: dotnet test src --configuration Release --collect:"XPlat Code Coverage"
- name: Upload coverage
uses: codecov/codecov-action@v1
# publish:
# needs: build
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# runs-on: ubuntu-latest
# steps:
# - name: Download Artifacts linux-x64
# uses: actions/download-artifact@v1
# with:
# name: linux-x64
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: ${{ github.ref }}
# body: "## Instructions\n1. Download the correct .zip file for your operating system\n2. Linux/Mac: export the path to your game path as an environment variable e.g.: `export CNC_GENERALS_PATH=~/generals/`\n3. Start the `OpenSage.Launcher` executable\n\n## Launcher\nThis executable will start OpenSAGE with the C&C Generals game files. To specify a different SAGE game, or see what other command line options are available, run `OpenSage.Launcher.exe --help`."
# draft: false
# prerelease: true
# TODO: Upload Release Assets
# using actions/upload-a-release-asset