Compare commits
15
Commits
73b70b5bc7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df82129c18 | ||
|
|
c79128dbcf | ||
|
|
ac26163234 | ||
|
|
de5bf573cd | ||
|
|
3a3a0ba68b | ||
|
|
980140c287 | ||
|
|
608cc25d19 | ||
|
|
c2ac0cf586 | ||
|
|
49f5bf24ed | ||
|
|
f315b03580 | ||
|
|
faf9d4dd9d | ||
|
|
d9b3838cbd | ||
|
|
8de9f6eb71 | ||
|
|
002897dfdc | ||
|
|
a50754a3cc |
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: nix-latest
|
runs-on: bare-metal
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
@@ -18,4 +18,34 @@ 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
|
||||||
|
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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: nix-latest
|
runs-on: bare-metal
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- name: Flake check
|
- name: Flake check
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
default = tar mingwW64;
|
default = tar mingwW64;
|
||||||
x86 = tar mingwW64;
|
x86 = tar mingwW64;
|
||||||
ucrt = tar ucrt64;
|
ucrt = tar ucrt64;
|
||||||
#ucrtAarch = tar ucrtAarch64;
|
arm = tar ucrtAarch64;
|
||||||
update = pkgs.callPackage ./update.nix { };
|
update = pkgs.callPackage ./update.nix { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user