GetMoarFediverse/.github/workflows/build.yml

33 lines
886 B
YAML
Raw Normal View History

name: build
2022-12-16 06:07:33 +01:00
on:
pull_request:
2022-12-21 03:09:32 +01:00
types: [ synchronize, opened ]
push:
branches:
- main
jobs:
build-artifacts:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: [ win-x64, linux-x64, linux-arm64, osx-x64 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build artifact
shell: pwsh
run: |
$srcPath = Join-Path (Pwd) src
docker run -v "$($srcPath):/var/src" mcr.microsoft.com/dotnet/sdk:6.0.403-alpine3.16 ash -c "dotnet publish -r ${{ matrix.runtime }} --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -c Release /var/src/GetMoarFediverse.csproj -o /var/output"
build-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2022-12-15 22:32:23 +01:00
- name: Build things
shell: pwsh
run: |
2022-12-15 22:32:23 +01:00
docker build .