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