mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
feat: add buildkite
This commit is contained in:
parent
82cad9eabd
commit
713c19c006
3 changed files with 4 additions and 102 deletions
62
.github/workflows/pr.yaml
vendored
62
.github/workflows/pr.yaml
vendored
|
@ -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
|
||||
# "
|
40
.github/workflows/release.yaml
vendored
40
.github/workflows/release.yaml
vendored
|
@ -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
4
buildkite.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
steps:
|
||||
- label: test
|
||||
command:
|
||||
- nix3 flake check
|
Loading…
Add table
Add a link
Reference in a new issue