Bump versions #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-14] | |
include: | |
- os: ubuntu-22.04 | |
arch: linux-arm64 | |
- os: windows-2022 | |
arch: win-x64 | |
- os: macos-14 | |
arch: osx-arm64 | |
steps: | |
- name: Install dependencies | |
if: matrix.arch == 'linux-arm64' | |
run: | | |
sudo apt-get update | |
sudo apt install clang | |
sudo apt-get install libtool | |
sudo apt-get install libssl-dev | |
sudo apt-get install -y make gcc libc-dev libpq-dev zlib1g-dev | |
sudo -E apt-get install -y libpam-dev libedit-dev libselinux1-dev | |
sudo -E apt-get install -y libssl-dev libkrb5-dev | |
sudo -E apt-get install -y binutils-aarch64-linux-gnu gcc-multilib debootstrap binfmt-support qemu-user-static gcc-multilib gcc-aarch64-linux-gnu | |
wget https://raw.githubusercontent.com/dotnet/runtime/refs/tags/v8.0.12/eng/common/cross/build-rootfs.sh | |
mkdir arm64 | |
cd arm64 | |
wget https://raw.githubusercontent.com/dotnet/runtime/refs/tags/v8.0.12/eng/common/cross/arm64/sources.list.bionic | |
cd .. | |
chmod +x build-rootfs.sh | |
sudo ./build-rootfs.sh arm64 bionic | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 9.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c Release | |
- name: Publish | |
run: dotnet publish -r ${{ matrix.arch }} -c Release -o ../output | |
working-directory: GetAssemblyInfo | |
- name: Upload error log | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: error-log | |
path: | | |
/home/runner/.tools/rootfs/arm64/debootstrap/debootstrap.log | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: GetAssemblyInfo-${{ matrix.arch }} | |
path: | | |
${{ github.workspace }}/output/GetAssemblyInfo | |
${{ github.workspace }}/output/GetAssemblyInfo.exe | |
- name: Publish shared library | |
if: matrix.arch != 'osx-arm64' | |
run: dotnet publish /p:NativeLib=Shared /p:OutputType=Library -r ${{ matrix.arch }} -c Release -o ../output | |
working-directory: GetAssemblyInfo | |
- uses: actions/upload-artifact@v4 | |
if: matrix.arch != 'osx-arm64' | |
with: | |
name: GetAssemblyInfo-${{ matrix.arch }}-shared | |
path: | | |
${{ github.workspace }}/output/GetAssemblyInfo.dll | |
${{ github.workspace }}/output/GetAssemblyInfo.so |