forked from Exiled-Official/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 51
42 lines (33 loc) · 1.37 KB
/
programs.yml
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
name: Exiled Programs CI
on: [push, pull_request]
defaults:
run:
working-directory: ./EXILED
jobs:
build:
# Prevent double running for push & pull_request events from the main repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: .Net Core ${{ matrix.framework }} on ${{ matrix.os }} for ${{ matrix.proj_name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
proj_name: [Exiled.Installer]
include:
- os: ubuntu-latest
target: linux-x64
- os: windows-latest
target: win-x64
timeout-minutes: 30
steps:
- uses: actions/setup-dotnet@v4.0.1
- uses: actions/checkout@v4.1.7
- name: Install dependencies for ${{ matrix.proj_name }}@${{ matrix.target }}
run: dotnet restore ${{ matrix.proj_name }} -r ${{ matrix.target }}
- name: Build ${{ matrix.proj_name }}@${{ matrix.target }}
run: dotnet publish ${{ matrix.proj_name }} -r ${{ matrix.target }} -c release -o builds/${{ matrix.target }} --self-contained true
- name: Upload ${{ matrix.proj_name }}@${{ matrix.target }} build
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.proj_name }}-${{ matrix.target }}
path: EXILED/builds/${{ matrix.target }}