Compare commits
No commits in common. "96ae0ca647474cb2012aa75108128f6fb2c3d668" and "3c40776981d6d1a82a537c0fc6c026ef043b3111" have entirely different histories.
96ae0ca647
...
3c40776981
3 changed files with 0 additions and 91 deletions
61
.github/workflows/build.yml
vendored
61
.github/workflows/build.yml
vendored
|
@ -1,61 +0,0 @@
|
||||||
name: build
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
TERM: ansi
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets. AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_ENDPOINT: https://s3.cy7.sh
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-packages:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os:
|
|
||||||
- ubuntu-latest
|
|
||||||
- ubuntu-24.04-arm
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: setup binary cache key
|
|
||||||
run: echo -n "${{ secrets.NIX_CACHE_SECRET_KEY }}" | xxd -p -r > ${{ runner.temp }}/cache-priv-key.pem
|
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v30
|
|
||||||
with:
|
|
||||||
enable_kvm: true
|
|
||||||
extra_nix_config: |
|
|
||||||
show-trace = true
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
secret-key-files = ${{ runner.temp }}/cache-priv-key.pem
|
|
||||||
extra-substituters = https://nixcache.cy7.sh
|
|
||||||
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8=
|
|
||||||
|
|
||||||
- name: Sync repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- run: nix build -L .
|
|
||||||
|
|
||||||
- name: cache
|
|
||||||
run: |
|
|
||||||
nix run \
|
|
||||||
github:cything/nixcp/test-in-ci -- push \
|
|
||||||
--bucket nixcache \
|
|
||||||
--signing-key ${{ runner.temp }}/cache-priv-key.pem \
|
|
||||||
result
|
|
||||||
|
|
||||||
- name: prepare tarball to upload
|
|
||||||
run: nix run github:nixos/nixpkgs#gnutar hcvf result.tar result
|
|
||||||
|
|
||||||
- name: upload result
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.os }}.tar
|
|
||||||
path: result.tar
|
|
||||||
if-no-files-found: error
|
|
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
@ -1,28 +0,0 @@
|
||||||
name: test
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v30
|
|
||||||
with:
|
|
||||||
enable_kvm: true
|
|
||||||
extra_nix_config: |
|
|
||||||
show-trace = true
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
extra-substituters = https://nixcache.cy7.sh
|
|
||||||
extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8=
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: nix develop -c cargo test --verbose
|
|
|
@ -44,7 +44,6 @@ async fn path_info_symlink() {
|
||||||
assert_eq!(path_info.path.to_string(), HELLO_DRV);
|
assert_eq!(path_info.path.to_string(), HELLO_DRV);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn closure() {
|
async fn closure() {
|
||||||
let ctx = common::context();
|
let ctx = common::context();
|
||||||
|
@ -55,4 +54,3 @@ async fn closure() {
|
||||||
let closure = path_info.get_closure(&ctx.store).await.unwrap();
|
let closure = path_info.get_closure(&ctx.store).await.unwrap();
|
||||||
assert_eq!(closure.len(), 472);
|
assert_eq!(closure.len(), 472);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue