-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (53 loc) · 2.05 KB
/
conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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}}/