Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df82129c18 | ||
|
|
c79128dbcf | ||
|
|
ac26163234 | ||
|
|
de5bf573cd | ||
|
|
3a3a0ba68b | ||
|
|
980140c287 | ||
|
|
608cc25d19 | ||
|
|
c2ac0cf586 | ||
|
|
49f5bf24ed |
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: nix-latest
|
runs-on: bare-metal
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
@@ -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
|
||||||
@@ -32,8 +34,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: https://gitea.com/actions/download-artifact@v3-node20
|
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
|
- name: Create release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
name: ${{ steps.date.outputs.DATE }}
|
||||||
|
tag_name: ${{ steps.date.outputs.DATE }}
|
||||||
files: |-
|
files: |-
|
||||||
"*.tar.xz"
|
*.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
|
||||||
|
|||||||
Reference in New Issue
Block a user