Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df82129c18 | ||
|
|
c79128dbcf | ||
|
|
ac26163234 | ||
|
|
de5bf573cd | ||
|
|
3a3a0ba68b | ||
|
|
980140c287 | ||
|
|
608cc25d19 | ||
|
|
c2ac0cf586 | ||
|
|
49f5bf24ed |
@@ -9,7 +9,7 @@
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix-latest
|
||||
runs-on: bare-metal
|
||||
strategy:
|
||||
matrix:
|
||||
arch:
|
||||
@@ -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
|
||||
@@ -32,8 +34,18 @@ jobs:
|
||||
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"
|
||||
*.tar.xz
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nix-latest
|
||||
runs-on: bare-metal
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- name: Flake check
|
||||
|
||||
Reference in New Issue
Block a user