Skip to content

Commit a34c8d7

Browse files
authored
Merge pull request #9 from quantinuum-dev/push-zvuuzoutuxpr
ci: Try getting ci working
2 parents d453041 + fe0e1ad commit a34c8d7

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
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

.github/workflows/release-plz.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ devenv.local.nix
1212
# Added by cargo
1313

1414
/target
15+
16+
# External dependencies
17+
third_party/

CHANGELOG.md

Whitespace-only changes.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# qulacs-bridge

devenv.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ in {
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
}

0 commit comments

Comments
 (0)