Skip to content

GitHub Actions: make unified archive #24

GitHub Actions: make unified archive

GitHub Actions: make unified archive #24

Workflow file for this run

name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration:
- .NET Debug
- .NET Release
- Debug
- Release
- Debug Static
- Release Static
- Unicode Debug
- Unicode Release
- Unicode Debug Static
- Unicode Release Static
platform: [x64, Win32]
steps:
- uses: actions/checkout@main
- uses: microsoft/setup-msbuild@main
- name: Restore NuGet packages
run: nuget restore source/BugTrap.sln
- name: Build
run: msbuild /m /p:Configuration="${{ matrix.configuration }}" /p:Platform="${{ matrix.platform }}" source/BugTrap.sln
- name: Upload artifacts
uses: actions/upload-artifact@main
with:
name: BugTrap ${{ matrix.configuration }} ${{ matrix.platform }} (github-${{ github.run_number }})
path: |
include/*
bin/*.dll
bin/*.lib
bin/*.pdb
LICENSE
pack-everything:
name: Pack everything into one archive
needs: build
runs-on: windows-latest
steps:
- name: Download everything from previous jobs
uses: actions/download-artifact@v4
- name: Upload unified artifact
uses: actions/upload-artifact@main
with:
name: BugTrap (github-${{ github.run_number }}).zip
path: BugTrap */**/*
- name: Pack into one
run: 7z a BugTrap.zip "./BugTrap */*"
- name: Upload manually packed artifact
uses: actions/upload-artifact@main
with:
name: BugTrap.zip
path: BugTrap.zip