7be68b6dc0
As mentioned in [^1] this PR includes a bump in swap size of the github action evaluating nixpkgs. This is subject to change once a tentative change to Nix is merged. ^1: https://github.com/NixOS/nixos-search/pull/419#issuecomment-1065356169 — * flake-info: use packages-config.nix straight from nixpkgs No need to override anything anymore, see discussion at https://github.com/NixOS/nixos-search/pull/343#issuecomment-1021147104 * flake-info: query package outputs `package_outputs` is now set to the actual outputs of the derivation instead of `meta.outputsToInstall` Also updates nixpkgs to get Rust 1.57 which has HashMap.into_keys * frontend: show package outputs * Drop 21.05 channel * Increase swap space in import-nixpkgs worker * Bump VERSION * frontend: improvements and refactoring - move licenses to the end (without a line break) - pluralise "Licenses:" conditionally - change the homepage emoji from a house to a world - replace backwards List.append pipelines with ++ chains - avoid text nodes in <ul> outside of <li> - improve rendering of maintainers * frontend: sort package outputs
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: "Nixpkgs: Hourly import to Elasticsearch"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
|
|
jobs:
|
|
|
|
import-nixpkgs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
channel:
|
|
- unstable
|
|
- 21.11
|
|
|
|
env:
|
|
RUST_LOG: debug
|
|
FI_ES_EXISTS_STRATEGY: abort
|
|
FI_ES_URL: ${{ secrets.ELASTICSEARCH_URL }}
|
|
|
|
steps:
|
|
- name: Increase swap space
|
|
uses: pierotofy/set-swap-space@v1.0
|
|
with:
|
|
swap-size-gb: 10
|
|
|
|
- name: Checking out the repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/common-setup
|
|
with:
|
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
|
|
|
|
|
|
|
- name: Building flake-info
|
|
run: |
|
|
nix -vL build .#flake-info
|
|
|
|
- name: Import ${{ matrix.channel }} channel
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
./result/bin/flake-info --push --elastic-schema-version=$(< VERSION) nixpkgs ${{ matrix.channel }}
|
|
if: github.repository_owner == 'NixOS'
|
|
|
|
- name: Warmup ${{ matrix.channel }} channel
|
|
run: |
|
|
for (( i = 0; i < 3; i++ )) do
|
|
curl -sS ${{ secrets.ELASTICSEARCH_URL }}/latest-$(< VERSION)-nixos-${{ matrix.channel }}/_search | jq -c '.took // .'
|
|
done
|
|
if: github.repository_owner == 'NixOS'
|