Skip to content

Commit

Permalink
workflow: added arch-dependent build.
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Oct 29, 2020
1 parent a11ad50 commit 570a3dd
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,52 @@ jobs:
!builds/*/index.html
build-other:
runs-on: ${{ matrix.os }}-latest
name: Build on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos", "windows"]
steps:
- name: Fetch Skare3-tools
uses: actions/checkout@v2
with:
repository: sot/skare3_tools
ref: master
path: skare3_tools
- uses: sot/setup-miniconda@v1
with:
miniconda-version: "py38_4.8.3"
python-version: "3.8"
channels: https://ska:${{ secrets.CONDA_PASSWORD }}@cxc.cfa.harvard.edu/mta/ASPECT/ska3-conda/shiny
- name: Build Dependencies
shell: bash -l {0}
run: conda install setuptools_scm gitpython conda-build jinja2 pyyaml python=3.8 numpy packaging
- name: Build Package
shell: bash -l {0}
run: |
python skare3_tools/actions/build/files/build.py --arch-specific ${GITHUB_REPOSITORY} --tag ${GITHUB_SHA}
env:
CONDA_PASSWORD: ${{ secrets.CONDA_PASSWORD }}
GIT_USERNAME: chandra-xray
GIT_ASKPASS: ${{ github.workspace }}/skare3_tools/actions/build/files/git_pass.py
GIT_PASSWORD: ${{ secrets.CHANDRA_XRAY_TOKEN }}
- name: Save package
uses: actions/upload-artifact@v2
with:
name: conda-package
path: |
builds/noarch/
builds/osx-64/
builds/win-64/
!builds/*/*repodata*
!builds/*/index.html
update-channel:
runs-on: head
name: Update Conda Channel
needs: [build-linux]
needs: [build-linux, build-other]
steps:
- name: Get linux package
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 570a3dd

Please sign in to comment.