-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1008 Bytes
/
main.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
43
name: Build & Release
on:
workflow_dispatch:
push:
branches:
- main
release:
types: [published]
jobs:
build:
name: Build Package
strategy:
fail-fast: false
matrix:
P4D_VERSION: ["23.1", "23.2", "24.1"]
DSM_VERSION: ["7.1", "7.2"]
include:
- SPK_PLATFORM: braswell
SPK_ARCH: x86_64
uses: ./.github/workflows/build-package.yml
with:
P4D_VERSION: ${{ matrix.P4D_VERSION }}
DSM_VERSION: ${{ matrix.DSM_VERSION }}
SPK_PLATFORM: ${{ matrix.SPK_PLATFORM }}
SPK_ARCH: ${{ matrix.SPK_ARCH }}
release:
name: Upload Packages in Github Release
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
path: packages
- name: Upload artifacts
uses: softprops/action-gh-release@v1
with:
files: |
packages/HelixCoreServer-*/HelixCoreServer-*.spk