Update build.yml

This commit is contained in:
Mark McDowall 2023-12-24 16:51:49 -08:00
parent 11d5a7ca4d
commit b490ea6483
3 changed files with 35 additions and 18 deletions

View File

@ -0,0 +1,17 @@
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: Publish Artifact
description: Publishes a build artifact
inputs:
runtime:
description: '.net runtime'
required: true
runs:
using: 'composite'
steps:
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.runtime }}
path: _artifacts/net6.0/${{ inputs.runtime }}/publish/**/*

View File

@ -1,7 +1,7 @@
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: Set up environment
description: Runs setup actions and installs packages
name: Publish Test Artifact
description: Publishes a test artifact
inputs:
runtime:

View File

@ -45,84 +45,84 @@ jobs:
# Test Artifacts
- name: Publish win-x64 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: win-x64
- name: Publish win-x86 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: win-x86
- name: Publish linux-x64 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: linux-x64
- name: Publish linux-musl-x64 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: linux-musl-x64
- name: Publish osx-x64 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: osx-x64
- name: Publish freebsd-x64 Test Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-test-artifact
with:
runtime: freebsd-x64
# Artifacts
- name: Publish win-x64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: win-x64
- name: Publish win-x86 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: win-x86
- name: Publish linux-x64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: linux-x64
- name: Publish linux-musl-x64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: linux-musl-x64
- name: Publish linux-arm64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: linux-arm64
- name: Publish linux-musl-arm64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: linux-musl-arm64
- name: Publish linux-arm Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: linux-arm
- name: Publish osx-x64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: osx-x64
- name: Publish osx-arm64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: osx-arm64
- name: Publish freebsd-x64 Artifact
uses: actions/publish-test-artifact@v1
uses: ./.github/actions/publish-artifact
with:
runtime: freebsd-x64