From a1ac5a1c5bafc6ec307cfd2cdcf7ac0574720b8b Mon Sep 17 00:00:00 2001 From: Fischer Moseley <42497969+fischermoseley@users.noreply.github.com> Date: Thu, 13 Apr 2023 18:19:00 -0400 Subject: [PATCH] add building examples to windows --- .github/workflows/build_examples.yml | 38 +++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_examples.yml b/.github/workflows/build_examples.yml index bc10b6c..98e3251 100644 --- a/.github/workflows/build_examples.yml +++ b/.github/workflows/build_examples.yml @@ -63,4 +63,40 @@ jobs: run: make icestick_io_core - name: Build lut_ram - run: make icestick_lut_ram \ No newline at end of file + run: make icestick_lut_ram + + windows_nexys_a7_examples: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Add SSH Keys + run: | + dir + pwd + mkdir ~/.ssh + touch ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + echo "${{ secrets.LAB_BC_PRIVATE_KEY }}" > ~/.ssh/id_rsa + echo "${{ secrets.LAB_BC_KNOWN_HOSTS }}" > ~/.ssh/known_hosts + + - name: Install Manta from Source + run: | + pip install setuptools --upgrade + + # omitting the following commmand causes the version of setuptools + # used by python to get confused, and it doesn't detect the name + # or version of the package from pyproject.toml - so the following + # workaround is used: + # https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377 + export DEB_PYTHON_INSTALL_LAYOUT=deb_system + + python3 -m pip install . + + - name: Build io_core + run: make nexys_a7_io_core + + - name: Build logic_analyzer + run: make nexys_a7_logic_analyzer + + - name: Build lut_ram + run: make nexys_a7_lut_ram \ No newline at end of file