Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/.condarc

This file was deleted.

22 changes: 13 additions & 9 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docs
name: Docs

on:
workflow_dispatch:
Expand All @@ -8,6 +8,7 @@ on:
pull_request:
paths:
- 'docs/**'

jobs:

build_docs:
Expand All @@ -23,24 +24,27 @@ jobs:
# SETUP
################################################################
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

################################################################
# CONFIG
################################################################
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: v0.20.1
- run: |
pixi run docs-build -d docs_build
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.0

################################################################
# BUILD
################################################################
- name: Build docs
run: pixi run docs-build -d docs_build

################################################################
# upload to github pages
# UPLOAD
################################################################
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: docs_build

Expand Down
47 changes: 4 additions & 43 deletions .github/workflows/build_recipes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: build recipes
name: Build Recipes

on:
push:
branches:
Expand All @@ -10,44 +11,6 @@ on:
- "recipes/**"

jobs:
lint_recipes:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.sha }}

- name: Fetch main branch
run: |
git fetch origin main

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "1.5.8-0"
environment-file: ci_env.yml
environment-name: ci
init-shell: bash
cache-environment: false
post-cleanup: "all"

- name: Lint recipes
shell: bash -el {0}
run: |
set -e

if [ "${{ github.event_name }}" = "pull_request" ]; then
BASE_REF="origin/main"
HEAD_REF="HEAD"
else
BASE_REF="HEAD~1"
HEAD_REF="HEAD"
fi

echo "Comparing changes between $BASE_REF and $HEAD_REF"
python -m emci build lint $BASE_REF $HEAD_REF

build_recipes:
runs-on: ubuntu-latest
Expand All @@ -62,7 +25,7 @@ jobs:
# SETUP
################################################################
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand Down Expand Up @@ -99,11 +62,9 @@ jobs:
# MAMBA
################################################################
- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: "1.5.8-0"
environment-file: ci_env.yml
environment-name: ci
init-shell: bash
cache-environment: false
post-cleanup: "all"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Copilot Setup Steps"
name: Copilot Setup

# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
steps:

- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: prefix-dev/setup-pixi@v0.9.0
- uses: prefix-dev/setup-pixi@v0.9.0
2 changes: 1 addition & 1 deletion .github/workflows/delete_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install micromamba
uses: mamba-org/setup-micromamba@v2
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/lint_recipes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Lint Recipes

on:
push:
branches:
- "main"
paths:
- "recipes/**"
pull_request:
paths:
- "recipes/**"

jobs:
lint_recipes:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.sha }}

- name: Fetch main branch
run: git fetch origin main

- name: Install micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ci_env.yml
init-shell: bash
post-cleanup: "all"

- name: Lint recipes
shell: bash -el {0}
run: |
set -e

if [ "${{ github.event_name }}" = "pull_request" ]; then
BASE_REF="origin/main"
HEAD_REF="HEAD"
else
BASE_REF="HEAD~1"
HEAD_REF="HEAD"
fi

echo "Comparing changes between $BASE_REF and $HEAD_REF"
python -m emci build lint $BASE_REF $HEAD_REF
8 changes: 4 additions & 4 deletions .github/workflows/new_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ on:
- cron: '0 0 * * *'

jobs:

update_versions:
strategy:
matrix:
branch: [main]


if: (github.event_name == 'schedule' && github.repository == 'emscripten-forge/recipes') || (github.event_name != 'schedule')
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: main

- name: Install micromamba
uses: mamba-org/setup-micromamba@v1
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ci_env.yml

- name: Determine new package version and open/merge PRs
shell: bash -l -eo pipefail {0}
run: python -m emci bot bump-recipes-versions ${{ matrix.branch }}
run: python -m emci bot bump-recipes-versions ${{ matrix.branch }}
env:
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}