Files
mingw-sword-build/.github/workflows/build.yml
T
Greg Hellings df82129c18
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
build.yml / build (ucrt) (push) Successful in 19s
build.yml / build (x86) (push) Successful in 19s
build.yml / release (push) Successful in 32s
Give the release a name, also
2026-08-06 22:48:12 -05:00

52 lines
1.3 KiB
YAML

"on":
pull_request:
workflow_dispatch:
push:
branches:
- main
tags:
- "*"
jobs:
build:
runs-on: bare-metal
strategy:
matrix:
arch:
- x86
- ucrt
steps:
- uses: actions/checkout@v6
- name: Build
run: |-
nix run -L ".#${{ matrix.arch }}"
mv sword.tar.xz sword-${{ matrix.arch }}.tar.xz
- name: Upload artifact
uses: https://gitea.com/actions/gitea-upload-artifact@v7
with:
name: ${{ matrix.arch }}
path: sword-${{ matrix.arch }}.tar.xz
release:
needs: build
runs-on: nix-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download artifacts
uses: https://gitea.com/actions/download-artifact@v3-node20
- id: date
name: Generate date
run: |-
echo "DATE=$(date +'%Y-%m-%d-%H')" >> "$GITHUB_OUTPUT"
for d in $(find -maxdepth 1 -type d); do
unzip -d . "${d}"/*.zip || true
done
ls -lR
- name: Create release
uses: https://gitea.com/actions/gitea-release-action@v1
with:
name: ${{ steps.date.outputs.DATE }}
tag_name: ${{ steps.date.outputs.DATE }}
files: |-
*.tar.xz