1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

feat: add buildkite

This commit is contained in:
Kevin Amado 2022-02-08 17:03:17 -05:00
parent 82cad9eabd
commit 713c19c006
No known key found for this signature in database
GPG key ID: FFF341057F503148
3 changed files with 4 additions and 102 deletions

View file

@ -1,62 +0,0 @@
name: PR
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
pr:
name: PR
runs-on: self-hosted
steps:
- name: Clone
uses: actions/checkout@v2
- name: Build
uses: docker://nixos/nix
with:
args: >
bash -ec "
nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \
--extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \
build \
--print-build-logs
"
- name: Check
uses: docker://nixos/nix
with:
args: >
bash -ec "
nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \
--extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \
flake \
check \
--print-build-logs
"
# ERROR cargo_tarpaulin: Failed to run tests: ASLR disable failed: EPERM: Operation not permitted
# - name: Test
# uses: docker://nixos/nix
# with:
# args: >
# bash -ec "
# source <( \
# nix \
# --extra-experimental-features flakes \
# --extra-experimental-features nix-command \
# --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1'
# --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1'
# print-dev-env \
# --no-update-lock-file \
# --no-write-lock-file \
# )
# cargo tarpaulin
# "

View file

@ -1,40 +0,0 @@
name: Release
on:
push:
branches: [ main ]
jobs:
release:
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
name: Release
runs-on: self-hosted
steps:
- name: Clone
uses: actions/checkout@v2
- name: Build and Release
uses: docker://nixos/nix
with:
args: >
bash -ec "
nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \
--extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \
build \
--print-build-logs
nix \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
--extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \
--extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \
develop \
--profile \
develop
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix push --compression-level 9 alejandra develop result
"

4
buildkite.yaml Normal file
View file

@ -0,0 +1,4 @@
steps:
- label: test
command:
- nix3 flake check