Merge pull request #711 from kordejong/gh710 #138
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
name: Conda packages | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
jobs: | |
build: | |
name: ${{ matrix.os }} / ${{ matrix.target-platform }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 240 | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: "macos-14" | |
target-platform: arm-64 | |
conda-bld-dir: "/Users/runner/miniconda3/envs/test/conda-bld/arm-64/" | |
conda-bld-arg: "--no-test" # TODO | |
- os: "ubuntu-22.04" | |
target-platform: linux-64 | |
conda-bld-dir: "/home/runner/miniconda3/envs/test/conda-bld/linux-64/" | |
conda-bld-arg: "" | |
- os: "windows-2022" | |
target-platform: win-64 | |
conda-bld-dir: "C:/Users/runneradmin/miniconda3/envs/test/conda-bld/win-64/" | |
conda-bld-arg: "" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
python-version: 3.11 | |
- name: Build package | |
run: | | |
mamba install boa | |
conda mambabuild environment/conda ${{ matrix.conda-bld-arg }} | |
- name: Upload | |
uses: Dylan700/sftp-upload-action@latest | |
if: github.repository == 'computationalgeography/lue' && github.ref == 'refs/heads/master' | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
port: ${{ secrets.FTP_PORT }} | |
delete: true | |
uploads: | | |
${{ matrix.conda-bld-dir }} => ${{ secrets.FTP_REMOTE_DIR }}/download/conda/${{ matrix.target-platform}}/ |