File tree Expand file tree Collapse file tree 6 files changed +17
-9
lines changed
Expand file tree Collapse file tree 6 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 2020 - name : Install devenv.sh
2121 run : nix profile install nixpkgs#devenv
2222 - name : Build
23- shell : devenv shell '{0}'
24- run : cargo build --verbose
23+ run : devenv shell cargo build
2524 - name : Run tests
26- shell : devenv shell '{0}'
27- run : cargo test --verbose
25+ run : devenv shell cargo test --verbose
Original file line number Diff line number Diff line change @@ -21,12 +21,18 @@ jobs:
2121 uses : actions/checkout@v4
2222 with :
2323 fetch-depth : 0
24- - uses : DeterminateSystems/nix-installer-action@main
25- - name : Install devenv.sh
26- run : nix profile install nixpkgs#devenv
24+ - name : Install Rust toolchain
25+ uses : dtolnay/rust-toolchain@stable
26+ - name : Build Qulacs
27+ run : |
28+ wget -qO- https://github.com/qulacs/qulacs/archive/refs/tags/v0.6.11.tar.gz | gunzip | tar xvf -
29+ mkdir third_party/
30+ mv qulacs-0.6.11 third_party/qulacs/
31+ cd third_party/qulacs
32+ bash ./script/build_gcc.sh
2733 - name : Run release-plz
28- shell : devenv shell '{0}'
2934 uses : MarcoIeni/release-plz-action@v0.5
3035 env :
3136 GITHUB_TOKEN : ${{ secrets.RELEASE_PLZ_TOKEN }}
3237 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
38+ LIBQULACS_PATH : ./third_party/qulacs/build
Original file line number Diff line number Diff line change @@ -12,3 +12,6 @@ devenv.local.nix
1212# Added by cargo
1313
1414/target
15+
16+ # External dependencies
17+ third_party /
Original file line number Diff line number Diff line change 1+ # qulacs-bridge
Original file line number Diff line number Diff line change 77 LIBCLANG_PATH = "${ pkgs . libclang . lib } /lib" ;
88 } ;
99
10- packages = [ pkgs . boost pkgs . eigen pkgs . mpi qulacs ] ;
10+ packages = [ pkgs . pkg-config pkgs . boost pkgs . eigen pkgs . mpi qulacs pkgs . act ] ;
1111 languages . rust . enable = true ;
1212 languages . nix . enable = true ;
1313}
You can’t perform that action at this time.
0 commit comments