Skip to content

Sort output by order provided in opcodes file #2

Sort output by order provided in opcodes file

Sort output by order provided in opcodes file #2

Workflow file for this run

name: Build artifact
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- '.github/workflows/build-artifact.yml'
- 'OpcodeExtractor.csproj'
- '*.cs'
workflow_dispatch:
jobs:
msbuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8'
- name: Set artifact name
shell: bash
run: |
sha=$(echo ${{ github.sha }} | cut -c 1-8)
echo "artifact_sha=$sha" >> $GITHUB_ENV
- name: Set up msbuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Add Custom Problem Matcher
run: |
echo "::add-matcher::.github/matchers/${{ github.job }}.json"
- name: Run Build
run: dotnet publish -c Release
shell: cmd
- name: Determine Version
shell: pwsh
run: |
[xml]$csprojcontents = Get-Content -Path "OpcodeExtractor.csproj";
$version = $csprojcontents.Project.PropertyGroup.AssemblyVersion;
$version = ($version | Out-String).Trim()
echo "version=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: OpcodeExtractor-${{ env.version }}-${{ env.artifact_sha }}
path: bin/Release/publish/
retention-days: 30