update to 2026.1.0.2 #30
This file contains hidden or 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: Build REST Regression | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - cross-win-64 | |
| paths: | |
| - .github/workflows/rest_reg.yml | |
| - recipe_rest_reg/** | |
| jobs: | |
| build-rest-regression-macos-arm64: | |
| runs-on: macos-14 | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| activate-environment: build-env | |
| environment-file: env_rattler.yaml | |
| - name: Build REST Regression recipe | |
| run: | | |
| conda activate build-env | |
| rattler-build build --recipe recipe_rest_reg --no-build-id --output-dir output --skip-existing=all -c conda-forge -c restgroup | |
| - name: Upload to Anaconda.org | |
| continue-on-error: true | |
| env: | |
| ANACONDA_API_KEY: ${{ secrets.ANACONDA }} | |
| run: | | |
| rattler-build upload anaconda -o restgroup ./output/*/*.conda | |
| build-rest-regression: | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| activate-environment: build-env | |
| # python-version: 3.11 | |
| environment-file: env_rattler.yaml | |
| # use-mamba: true | |
| - name: Extract Git source info for cache key | |
| id: get-git-key | |
| shell: bash | |
| run: | | |
| # This uses yq (a YAML processor) to read the git URL and tag from recipe.yaml | |
| # Install yq if not present. With Conda, you can add 'yq' to your environment.yml. | |
| # This example assumes a simple recipe structure. You may need to adjust the yq query. | |
| GIT_URL=$(yq eval '.source[0].git' recipe_rest_reg/recipe.yaml) | |
| GIT_TAG=$(yq eval '.source[0].tag' recipe_rest_reg/recipe.yaml) | |
| # Combine and hash them to create a stable, shorter key component | |
| GIT_SOURCE_HASH=$(echo -n "${GIT_URL}-${GIT_TAG}" | sha256sum | head -c 12) | |
| echo "GIT_SOURCE_HASH=${GIT_SOURCE_HASH}" >> $GITHUB_ENV | |
| - name: Cache Rattler git sources | |
| uses: actions/cache@v4 | |
| # env: | |
| # GIT_SOURCE_HASH: ${{ env.GIT_SOURCE_HASH }} | |
| with: | |
| path: | | |
| # output/bld/rattler-build_rest_regression | |
| output/src_cache/ | |
| key: ${{ runner.os }}-git-src-${{ env.GIT_SOURCE_HASH }} | |
| # - name: Cache Cargo dependencies and build output | |
| # uses: actions/cache@v4 | |
| # with: | |
| # path: | | |
| # ~/.cargo/bin | |
| # ~/.cargo/registry/index | |
| # ~/.cargo/registry/cache | |
| # ~/.cargo/git/db | |
| # key: ${{ runner.os }}-cargo-${{ hashFiles('output/bld/rattler-build_rest_regression/work/rest_regression/Cargo.toml') }} | |
| # restore-keys: | | |
| # ${{ runner.os }}-cargo- | |
| - name: Build REST Regression recipe | |
| run: | | |
| # conda info | |
| # conda env list | |
| conda activate build-env | |
| rattler-build build --recipe recipe_rest_reg --no-build-id --output-dir output --skip-existing=all -c conda-forge -c restgroup | |
| - name: Upload to Anaconda.org | |
| continue-on-error: true | |
| env: | |
| ANACONDA_API_KEY: ${{ secrets.ANACONDA }} | |
| run: | | |
| rattler-build upload anaconda -o restgroup ./output/*/*.conda | |
| build-rest-regression-windows: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| activate-environment: build-env | |
| environment-file: env_rattler.yaml | |
| - name: Build REST Regression recipe (win-64) | |
| run: | | |
| conda activate build-env | |
| rattler-build build --recipe recipe_rest_reg --no-build-id --output-dir output --target-platform win-64 --skip-existing=all -c conda-forge -c restgroup | |
| - name: Upload to Anaconda.org | |
| continue-on-error: true | |
| env: | |
| ANACONDA_API_KEY: ${{ secrets.ANACONDA }} | |
| run: | | |
| rattler-build upload anaconda -o restgroup ./output/*/*.conda |