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: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: Build - 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 - name: Upload artifact
uses: https://gitea.com/actions/gitea-upload-artifact@v7 uses: https://gitea.com/actions/gitea-upload-artifact@v7
with: with:
name: ${{ matrix.arch }} name: ${{ matrix.arch }}
path: "*.tar.xz" path: sword-${{ matrix.arch }}.tar.xz
release: release:
needs: build needs: build
@@ -35,10 +37,9 @@ jobs:
- id: date - id: date
name: Generate date name: Generate date
run: |- run: |-
nix build "nixpkgs#coreutils" echo "DATE=$(date +'%Y-%m-%d-%H')" >> "$GITHUB_OUTPUT"
echo "DATE=$(./result/bin/date +'%Y-%m-%d-%H')" >> "$GITHUB_OUTPUT" for d in $(find -maxdepth 1 -type d); do
for d in $(nix run "nixpkgs#findutils" -- -maxdepth 1 -type d); do unzip -d . "${d}"/*.zip || true
nix run "nixpkgs#unzip" -- -d . "${d}"/*.zip || true
done done
ls -lR ls -lR
- name: Create release - name: Create release