Uses existing tools in builder image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user