Skip to content

Update dotnet-core.yml #537

Update dotnet-core.yml

Update dotnet-core.yml #537

Workflow file for this run

name: .NET CI
on: [push, pull_request]
jobs:
build:
name: .Net ${{ matrix.framework }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
framework: ['8.0']
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- if: matrix.os == 'ubuntu-20.04'
name: Install Linux packages
run: |
sudo apt-get update
sudo apt-get install -y build-essential libkrb5-dev make gcc libc-dev cmake llvm
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.framework }}
- name: A
run: dumpbin /exports C:/Windows/System32/ntdll.dll
- name: B
run: dumpbin /exports C:/Windows/System32/kernel32.dll
- name: C
run: dumpbin /exports C:/Windows/System32/advapi32.dll
- name: Build ${{ matrix.target }}
run: dotnet publish "LocalAdmin V2.csproj" -r ${{ matrix.target }} -c release -o "${{ github.workspace }}/builds/${{ matrix.framework }}/${{ matrix.target }}"
- name: Upload ${{ matrix.target }} Build
uses: actions/upload-artifact@v3
with:
name: LocalAdmin-${{ matrix.target }}-${{ matrix.framework }}
path: ${{ github.workspace }}/builds/${{ matrix.framework }}/${{ matrix.target }}
- name: Upload ${{ matrix.target }} Build to bundle
uses: actions/upload-artifact@v3
with:
name: LocalAdmin-all-${{ matrix.framework }}
path: ${{ github.workspace }}/builds/${{ matrix.framework }}