Skip to content

⚗️ conda linux qemu #25

⚗️ conda linux qemu

⚗️ conda linux qemu #25

Workflow file for this run

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
shell: bash -el {0}
run: |
echo "FILENAME=wake-${{ runner.os }}-${{ runner.arch }}.tar.gz" >> $GITHUB_ENV
- 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 ${{ env.FILENAME }}
- name: Generate checksum Linux & Windows
if: runner.os != 'macOS'
run: |
sha256sum ${{ env.FILENAME }} > ${{ env.FILENAME }}.sha256
- name: Generate checksum MacOS
if: runner.os == 'macOS'
run: |
shasum -a 256 ${{ env.FILENAME }} > ${{ env.FILENAME }}.sha256
- name: Generate signature
run: |
echo "${{ secrets.CONDA_PRIVATE_KEY }}" > key.pem
openssl dgst -sha256 -sign key.pem -out ${{ env.FILENAME }}.sha256.sig ${{ env.FILENAME }}.sha256
- name: Upload files
uses: actions/upload-artifact@v2
with:
name: wake-${{ runner.os }}-${{ runner.arch }}
path: |
${{ env.FILENAME }}
${{ env.FILENAME }}.sha256
${{ env.FILENAME }}.sha256.sig