Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flake-ify this repository #8

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,49 @@ on:
branches: [ master ]

jobs:
x86_64:
x86-64:
runs-on: ubuntu-20.04
steps:

# Installation
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-20.09
- uses: cachix/cachix-action@v8
with:
name: nixpkgs-review-bot
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
extra_nix_config: |
experimental-features = nix-command flakes

# Build
- name: Build
run: |
nix build \
--print-build-logs \
-f . \
nixbot-backend nixbot-frontend
nix build .#nixbot-frontend -L --show-trace
nix build .#nixbot-backend -L --show-trace

aarch64:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: |
DEBIAN_FRONTEND=noninteractive
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
mkdir -p ~/.config/nix
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
- uses: cachix/cachix-action@v8
with:
name: nixpkgs-review-bot
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build
timeout-minutes: 3000
run: |
nix build \
--print-build-logs \
--option system aarch64-linux \
--option sandbox false \
--extra-platforms aarch64-linux \
-f . \
nixbot-backend nixbot-frontend

# aarch64:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/[email protected]
# - uses: cachix/install-nix-action@v12
# with:
# nix_path: nixpkgs=channel:nixos-20.09
# - run: |
# DEBIAN_FRONTEND=noninteractive
# sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
# mkdir -p ~/.config/nix
# sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
# - uses: cachix/cachix-action@v8
# with:
# name: nixpkgs-review-bot
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# - name: Build
# timeout-minutes: 3000
# run: |
# nix build \
# --print-build-logs \
# --option system aarch64-linux \
# --option sandbox false \
# --extra-platforms aarch64-linux \
# -f . \
# nixbot-backend nixbot-frontend
89 changes: 0 additions & 89 deletions default.nix

This file was deleted.

Loading