Skip to content

Commit

Permalink
ci: setup staq in CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Dec 24, 2024
1 parent a7b2d10 commit 74727b0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/actions/setup-staq/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Setup Staq
description: Install Staq quantum compiler

runs:
using: composite
steps:
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
bison \
flex \
libboost-all-dev
shell: bash

- name: Build and install Staq
run: |
cd /tmp
git clone https://github.com/softwareQinc/staq.git
cd staq
mkdir build
cd build
cmake ..
make -j8
sudo make install
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Staq
uses: ./.github/actions/setup-staq

- name: Setup Python ${{ matrix.python-version }} with uv
uses: ./.github/actions/setup-python-with-uv
with:
Expand Down

0 comments on commit 74727b0

Please sign in to comment.