This commit is contained in:
parent
db330b546d
commit
abce966b76
3 changed files with 14 additions and 44 deletions
|
|
@ -1,26 +0,0 @@
|
||||||
name: "Update Nix Flake Inputs"
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 10 1,14 * *"
|
|
||||||
jobs:
|
|
||||||
update:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v20
|
|
||||||
- name: Update flake inputs
|
|
||||||
id: update
|
|
||||||
uses: DeterminateSystems/update-flake-lock@v19
|
|
||||||
with:
|
|
||||||
pr-title: "chore: update flake.lock"
|
|
||||||
commit-msg: "chore: update flake.lock"
|
|
||||||
pr-reviewers: iofq
|
|
||||||
pr-labels: |
|
|
||||||
dependencies
|
|
||||||
automated
|
|
||||||
auto-merge
|
|
||||||
- name: Print PR number
|
|
||||||
run: echo Pull request number is ${{ steps.update.outputs.pull-request-number }}.
|
|
||||||
|
|
@ -1,23 +1,22 @@
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
types: [opened]
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: nix-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package_name: ["nvim-min"]
|
package_name: ["nvim"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
- name: check
|
||||||
|
run: nix flake check
|
||||||
- name: Run `nix bundle`
|
- name: Run `nix bundle`
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
id: build
|
id: build
|
||||||
run: |
|
run: |
|
||||||
nix bundle \
|
nix bundle \
|
||||||
|
|
@ -27,11 +26,8 @@ jobs:
|
||||||
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
--extra-experimental-features flakes .#${{ matrix.package_name }}
|
||||||
echo "Done building AppImage for ${{ matrix.package_name }}"
|
echo "Done building AppImage for ${{ matrix.package_name }}"
|
||||||
- name: Upload bundle to release
|
- name: Upload bundle to release
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
path: "${{ matrix.package_name }}.AppImage"
|
||||||
file: "${{ matrix.package_name }}.AppImage"
|
name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
||||||
asset_name: "${{ matrix.package_name }}-x86_64-linux.AppImage"
|
|
||||||
tag: latest
|
|
||||||
overwrite: true
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
consensus = inputs.nixpkgs-stable.lib.nixosSystem {
|
consensus = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
pkgs = pkgs.stable;
|
pkgs = pkgs.nixos-stable;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
pkgs-unstable = mkPkgs system;
|
pkgs-unstable = mkPkgs system;
|
||||||
inherit inputs system attrs;
|
inherit inputs system attrs;
|
||||||
|
|
@ -47,7 +47,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
zen = inputs.nixpkgs-stable.lib.nixosSystem {
|
zen = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
pkgs = pkgs.stable;
|
pkgs = pkgs.nixos-stable;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs system attrs;
|
inherit inputs system attrs;
|
||||||
host = {
|
host = {
|
||||||
|
|
@ -60,7 +60,7 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
oracle1 = inputs.nixpkgs-stable.lib.nixosSystem {
|
oracle1 = inputs.nixpkgs-stable.lib.nixosSystem {
|
||||||
pkgs = pkgs.stable;
|
pkgs = pkgs.nixos-stable;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs system attrs;
|
inherit inputs system attrs;
|
||||||
host = {
|
host = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue