Skip to content

Commit

Permalink
Use a separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Mar 23, 2024
1 parent 9643401 commit ba0d459
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 7 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Build conda packages"

on:
push:
branches: [main]
pull_request:
branches:
- main
workflow_dispatch:

env:
FORCE_COLOR: "1" # Make tools pretty.

permissions:
contents: read # This is required for actions/checkout

jobs:
# Always build & verify package.
build-package:
name: Build & verify package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-14
- windows-latest
steps:
- name: "Checkout Repository 🛎"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Check conda builds 📦"
uses: jaimergp/conda-build-action@main
7 changes: 0 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ jobs:
with:
path: ${{ matrix.directory }}

- name: "Check conda builds - ${{ matrix.directory }} 📦"
uses: jaimergp/conda-build-action@main
# the recipe covers both for now, so no need to duplicate work
if: matrix.directory == 'conda-store'
with:
upload-artifact: 'false'

# Adding a separate upload for publishing
- name: "Upload build artefacts 📤"
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ba0d459

Please sign in to comment.