CI
Some checks failed
CI / Nix Flake Check (push) Failing after 2m1s
CI / Build Packages (default) (push) Successful in 2m5s
CI / Build Packages (example-a) (push) Successful in 44s
CI / Build Packages (example-b) (push) Successful in 43s
CI / Build Packages (pyzotero-cli) (push) Successful in 53s
CI / Build Packages (pyzotero) (push) Successful in 51s
Some checks failed
CI / Nix Flake Check (push) Failing after 2m1s
CI / Build Packages (default) (push) Successful in 2m5s
CI / Build Packages (example-a) (push) Successful in 44s
CI / Build Packages (example-b) (push) Successful in 43s
CI / Build Packages (pyzotero-cli) (push) Successful in 53s
CI / Build Packages (pyzotero) (push) Successful in 51s
This commit is contained in:
65
.gitea/workflows/ci.yml
Normal file
65
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,65 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Nix Flake Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v26
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
accept-flake-config = true
|
||||
|
||||
- name: Setup Cachix
|
||||
uses: https://github.com/cachix/cachix-action@v14
|
||||
with:
|
||||
name: nix-community
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
skipPush: true
|
||||
|
||||
- name: Run flake checks
|
||||
run: nix flake check --print-build-logs
|
||||
|
||||
build:
|
||||
name: Build Packages
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
package:
|
||||
- default
|
||||
- example-a
|
||||
- example-b
|
||||
- pyzotero
|
||||
- pyzotero-cli
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v26
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
accept-flake-config = true
|
||||
|
||||
- name: Setup Cachix
|
||||
uses: https://github.com/cachix/cachix-action@v14
|
||||
with:
|
||||
name: nix-community
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
skipPush: true
|
||||
|
||||
- name: Build ${{ matrix.package }}
|
||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||
Reference in New Issue
Block a user