This commit is contained in:
parent
abce966b76
commit
dd0374ee37
16 changed files with 386 additions and 54 deletions
12
.forgejo/workflows/check.yml
Normal file
12
.forgejo/workflows/check.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nix-upstream-latest
|
||||
steps:
|
||||
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||
- run: nix-env -i nodejs
|
||||
- uses: actions/checkout@v4
|
||||
- name: nix flake check
|
||||
run: nix flake check
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix-latest
|
||||
strategy:
|
||||
matrix:
|
||||
package_name: ["nvim"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- name: check
|
||||
run: nix flake check
|
||||
- name: Run `nix bundle`
|
||||
if: github.ref == 'refs/heads/main'
|
||||
id: build
|
||||
run: |
|
||||
nix bundle \
|
||||
-o ${{ matrix.package_name }}.AppImage \
|
||||
--bundler github:ralismark/nix-appimage \
|
||||
--extra-experimental-features nix-command \
|
||||
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
||||
echo "Done building AppImage for ${{ matrix.package_name }}"
|
||||
- name: Upload bundle to release
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
path: "${{ matrix.package_name }}.AppImage"
|
||||
name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
||||
24
.forgejo/workflows/nvim-bundle.yml
Normal file
24
.forgejo/workflows/nvim-bundle.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'pkgs/nvim/**'
|
||||
jobs:
|
||||
nvim-bundle:
|
||||
runs-on: nix-upstream-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
strategy:
|
||||
matrix:
|
||||
package_name: ["nvim"]
|
||||
steps:
|
||||
- run: echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
|
||||
- run: nix-env -i nodejs
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run `nix bundle`
|
||||
run: |
|
||||
path="${{ matrix.package_name }}.AppImage"
|
||||
nix bundle --bundler github:ralismark/nix-appimage \
|
||||
-o "$path" \
|
||||
.#${{ matrix.package_name }}
|
||||
curl --user "${{ secrets.FJ_USER }}:${{ secrets.FJ_PASS }}" \
|
||||
--upload-file "$path" \
|
||||
"${{ forge.api_url }}/packages/${{ secrets.FJ_USER }}/generic/${{ matrix.package_name }}/latest/$path"
|
||||
Loading…
Add table
Add a link
Reference in a new issue