Uses existing tools in builder image
build.yml / build (ucrt) (push) Successful in 22s
build.yml / build (x86) (push) Successful in 22s
build.yml / release (push) Successful in 30s

This commit is contained in:
Greg Hellings
2026-08-06 22:44:09 -05:00
parent ac26163234
commit c79128dbcf
+7 -6
View File
@@ -18,12 +18,14 @@ jobs:
steps:
- uses: actions/checkout@v6
- name: Build
run: nix run -L ".#${{ matrix.arch }}"
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: "*.tar.xz"
path: sword-${{ matrix.arch }}.tar.xz
release:
needs: build
@@ -35,10 +37,9 @@ jobs:
- id: date
name: Generate date
run: |-
nix build "nixpkgs#coreutils"
echo "DATE=$(./result/bin/date +'%Y-%m-%d-%H')" >> "$GITHUB_OUTPUT"
for d in $(nix run "nixpkgs#findutils" -- -maxdepth 1 -type d); do
nix run "nixpkgs#unzip" -- -d . "${d}"/*.zip || true
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