Skip to content

Commit

Permalink
uncommenting piranha image file in build
Browse files Browse the repository at this point in the history
  • Loading branch information
CorwinAnsley committed Sep 12, 2024
1 parent d741227 commit cbffbd8
Showing 1 changed file with 38 additions and 43 deletions.
81 changes: 38 additions & 43 deletions .github/workflows/build_deb_pkg.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Ubuntu/Debian build

Expand Down Expand Up @@ -27,10 +25,7 @@ jobs:

steps:
- uses: actions/checkout@v4
# - name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"

- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: false
Expand Down Expand Up @@ -86,22 +81,22 @@ jobs:
run: |
git push origin HEAD:main
# - name: pull piranha docker image
# run: |
# docker pull polionanopore/piranha:latest
- name: pull piranha docker image
run: |
docker pull polionanopore/piranha:latest
# - name: save piranha docker image to file
# working-directory: ./artifice/
# run: |
# mkdir piranha_image_file
# docker save --output piranha_image_file/piranha.tar polionanopore/piranha:latest
- name: save piranha docker image to file
working-directory: ./artifice/
run: |
mkdir piranha_image_file
docker save --output piranha_image_file/piranha.tar polionanopore/piranha:latest
# - name: Temporarily save piranha docker image
# uses: actions/upload-artifact@v4
# with:
# name: piranha.tar
# path: artifice/piranha_image_file/piranha.tar
# retention-days: 1
- name: Temporarily save piranha docker image
uses: actions/upload-artifact@v4
with:
name: piranha.tar
path: artifice/piranha_image_file/piranha.tar
retention-days: 1

- name: create release
uses: actions/create-release@v1
Expand Down Expand Up @@ -141,16 +136,16 @@ jobs:
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -r artifice/requirements.txt
# - name: make dir for piranha image file
# working-directory: ./artifice
# run: |
# mkdir piranha_image_file
- name: make dir for piranha image file
working-directory: ./artifice
run: |
mkdir piranha_image_file
# - name: Retrieve saved piranha docker image
# uses: actions/download-artifact@v4
# with:
# name: piranha.tar
# path: artifice/piranha_image_file/
- name: Retrieve saved piranha docker image
uses: actions/download-artifact@v4
with:
name: piranha.tar
path: artifice/piranha_image_file/

- name: build deb package
working-directory: ./artifice/linux_build/
Expand Down Expand Up @@ -189,11 +184,11 @@ jobs:
miniforge-version: latest
auto-activate-base: false

# - name: Retrieve saved piranha docker image
# uses: actions/download-artifact@v4
# with:
# name: piranha.tar
# path: artifice/resources/
- name: Retrieve saved piranha docker image
uses: actions/download-artifact@v4
with:
name: piranha.tar
path: artifice/resources/

- name: build package
working-directory: ./artifice/mac_build/pyinstaller_build/
Expand Down Expand Up @@ -241,16 +236,16 @@ jobs:
run: |
pip install pyinstaller==6.6.0
# - name: make dir for piranha image file
# working-directory: ./artifice
# run: |
# mkdir piranha_image_file
- name: make dir for piranha image file
working-directory: ./artifice
run: |
mkdir piranha_image_file
# - name: Retrieve saved piranha docker image
# uses: actions/download-artifact@v4
# with:
# name: piranha.tar
# path: artifice/piranha_image_file/
- name: Retrieve saved piranha docker image
uses: actions/download-artifact@v4
with:
name: piranha.tar
path: artifice/piranha_image_file/

- name: build package
working-directory: ./artifice/windows_build/
Expand Down

0 comments on commit cbffbd8

Please sign in to comment.