updating PcieVersionLock = 0x03080000 #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------------- | |
# Title : Cameralink Gateway GitHub Actions Script | |
# ---------------------------------------------------------------------------- | |
# This file is part of the Cameralink Gateway package. It is subject to | |
# the license terms in the LICENSE.txt file found in the top-level directory | |
# of this distribution and at: | |
# https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | |
# No part of the Cameralink Gateway package, including this file, may be | |
# copied, modified, propagated, or distributed except according to the terms | |
# contained in the LICENSE.txt file. | |
# ---------------------------------------------------------------------------- | |
# The following environment variables are required for this process: | |
# secrets.CONDA_UPLOAD_TOKEN_TAG | |
name: CLINK GW Integration | |
on: [push] | |
jobs: | |
conda_build: | |
name: Anaconda Build | |
if: startsWith(github.ref, 'refs/tags/') | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
# This step checks out a copy of your repository. | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Setup anaconda | |
env: | |
OS_NAME: ${{ matrix.os }} | |
run: | | |
cd ${HOME} | |
wget -O miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
bash miniconda.sh -b -p ${HOME}/miniconda | |
export PATH="${HOME}/miniconda/bin:$PATH" | |
source ${HOME}/miniconda/etc/profile.d/conda.sh | |
conda config --set always_yes yes | |
conda config --set channel_priority strict | |
conda install -n base conda-libmamba-solver | |
conda config --set solver libmamba | |
conda install conda-build anaconda-client conda-verify | |
conda update -q conda conda-build | |
conda update --all | |
- name: Get Image Information | |
id: get_image_info | |
env: | |
OS_NAME: ${{ matrix.os }} | |
CONDA_UPLOAD_TOKEN_TAG: ${{ secrets.CONDA_UPLOAD_TOKEN_TAG }} | |
URL_BASE: https://github.com/${{ github.repository }}/releases/download | |
run: | | |
echo ::set-output name=token::$CONDA_UPLOAD_TOKEN_TAG | |
echo ::set-output name=os::linux-64 | |
echo ::set-output name=url::${URL_BASE}/${GITHUB_REF#refs/tags/}/rogue_${GITHUB_REF#refs/tags/}.zip | |
echo ::set-output name=tag::${GITHUB_REF#refs/tags/} | |
- name: Download And Extract | |
env: | |
DOWNLOAD_URL: ${{ steps.get_image_info.outputs.url }} | |
run: | | |
mkdir ${HOME}/download | |
cd ${HOME}/download | |
wget -O file.zip $DOWNLOAD_URL | |
unzip file.zip | |
- name: Build And Upload | |
run: | | |
export PATH="${HOME}/miniconda/bin:$PATH" | |
source ${HOME}/miniconda/etc/profile.d/conda.sh | |
cd ${HOME}/download/ | |
conda build --debug conda-recipe --output-folder bld-dir -c tidair-tag -c tidair-packages -c conda-forge | |
anaconda -t ${{ steps.get_image_info.outputs.token }} upload --force bld-dir/noarch/*.tar.bz2 | |