Skip to content

Commit

Permalink
⚗️ Try conda-pack pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jun 21, 2024
1 parent 95309fd commit 5c76c40
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/conda-pack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build conda environments

on: [push]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Set up variables
id: vars
run: |
echo ::set-output name=filename::wake-${{ runner.os }}-${{ runner.arch }}.tar.gz
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: wake
auto-update-conda: true
python-version: "3.10"
- name: Install dependencies
shell: bash -el {0}
run: |
python -m pip install .
conda install -c conda-forge conda-pack -y
- name: Pack conda environment
shell: bash -el {0}
run: |
conda-pack -n wake -o ${{ steps.vars.outputs.filename }}
- name: Generate checksum Linux & Windows
if: runner.os != 'macOS'
run: |
sha256sum ${{ steps.vars.outputs.filename }} > ${{ steps.vars.outputs.filename }}.sha256
- name: Generate checksum MacOS
if: runner.os == 'macOS'
run: |
shasum -a 256 ${{ steps.vars.outputs.filename }} > ${{ steps.vars.outputs.filename }}.sha256
- name: Generate signature
run: |
echo "${{ secrets.CONDA_PRIVATE_KEY }}" > key.pem
openssl dgst -sha256 -sign key.pem -out ${{ steps.vars.outputs.filename }}.sha256.sig ${{ steps.vars.outputs.filename }}.sha256
- name: Upload files
uses: actions/upload-artifact@v2
with:
name: wake-${{ runner.os }}-${{ runner.arch }}
paths: |
${{ steps.vars.outputs.filename }}
${{ steps.vars.outputs.filename }}.sha256
${{ steps.vars.outputs.filename }}.sha256.sig

0 comments on commit 5c76c40

Please sign in to comment.