nixfleet/.forgejo/workflows/build.yaml
Andrea Ciceri 1897492a5d
Some checks failed
/ test (push) Failing after -44s
Allow CI to fetch private GitHub repos
2025-05-16 18:35:39 +02:00

25 lines
915 B
YAML

on:
push:
branches: ["*"]
jobs:
test:
runs-on: nix
steps:
- uses: actions/checkout@v4
name: Checkout repository
- name: Attic login
run: attic login nixfleet http://sisko.wg.aciceri.dev:8081 ${{secrets.ATTIC_NIXFLEET_TOKEN}}
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{secrets.FORGEJO_SSH_KEY}}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-keyscan sisko.wg.aciceri.dev >> ~/.ssh/known_hosts
mkdir -p /home/ccr/.ssh
ln -s ~/.ssh/id_ed25519 /home/ccr/.ssh/id_rsa
ls -l /home/ccr/.ssh -l
- name: Build with nix
run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux" --attic-cache "nixfleet" --skip-cached --result-file result.json || true
- name: Report checks
run: report-checks