Files
mingw-sword-build/.github/workflows/build.yml
T
2026-08-05 22:03:49 -05:00

40 lines
786 B
YAML

"on":
pull_request:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"
jobs:
build:
runs-on: nix-latest
strategy:
matrix:
arch:
- x86
- ucrt
steps:
- uses: actions/checkout@v6
- name: Build
run: nix run -L ".#${{ matrix.arch }}"
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.arch }}
path: "*.tar.xz"
release:
needs: build
runs-on: nix-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifacts
uses: actions/download-artifact@v8
- name: Create release
uses: actions/gitea-release-action@v1
with:
files: |-
"*.tar.xz"