Skip to content

Commit

Permalink
Split workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
intelligide committed Nov 17, 2023
1 parent 17c1241 commit aca82e8
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
build:
name: Build Package
name: Build Package P4D=${{ inputs.P4D_VERSION }} Platform${{ inputs.SPK_PLATFORM }} DSM=${{ inputs.DSM_VERSION }} Arch=${{ inputs.SPK_ARCH }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
20 changes: 1 addition & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Build & Release
name: Build Test

on:
workflow_dispatch:
push:
branches:
- main
release:
types: [published]

jobs:
build:
Expand All @@ -25,19 +23,3 @@ jobs:
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
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
workflow_dispatch:
release:
types: [published]

jobs:
build:
name: Build Package
strategy:
fail-fast: false
matrix:
P4D_VERSION: ["22.2", "23.1", "23.2"]
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

0 comments on commit aca82e8

Please sign in to comment.