From a01f144be5f63acb302b343db720c6775ab8a79b Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 16 Jul 2024 21:55:50 +0200 Subject: [PATCH 1/3] Just build noarch canaries --- .github/workflows/tests.yml | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ad26107..72378583 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -697,26 +697,15 @@ jobs: # - prior steps succeeded, # - this is the main repo, and # - we are on the main, feature, or release branch - if: >- - !cancelled() - && !github.event.repository.fork - && ( - github.ref_name == 'main' - || startsWith(github.ref_name, 'feature/') - || endsWith(github.ref_name, '.x') - ) - strategy: - matrix: - include: - - runner: ubuntu-latest - subdir: linux-64 - - runner: macos-latest - subdir: osx-64 - - runner: macos-14 - subdir: osx-arm64 - - runner: windows-latest - subdir: win-64 - runs-on: ${{ matrix.runner }} + # if: >- + # !cancelled() + # && !github.event.repository.fork + # && ( + # github.ref_name == 'main' + # || startsWith(github.ref_name, 'feature/') + # || endsWith(github.ref_name, '.x') + # ) + runs-on: ubuntu-latest steps: # Clean checkout of specific git ref needed for package metadata version # which needs env vars GIT_DESCRIBE_TAG and GIT_BUILD_STR: @@ -755,13 +744,13 @@ jobs: Path(environ["GITHUB_ENV"]).write_text(f"ANACONDA_ORG_LABEL={label}") - name: Create & Upload - uses: conda/actions/canary-release@v24.2.0 + uses: conda/actions/canary-release@v24.5.0 env: # Run conda-build in isolated activation to properly package conda _CONDA_BUILD_ISOLATED_ACTIVATION: 1 with: package-name: ${{ github.event.repository.name }} - subdir: ${{ matrix.subdir }} + subdir: noarch anaconda-org-channel: conda-canary anaconda-org-label: ${{ env.ANACONDA_ORG_LABEL }} - anaconda-org-token: ${{ secrets.ANACONDA_ORG_CONDA_CANARY_TOKEN }} + anaconda-org-token: ${{ secrets.ANACONDA_ORG_CONDA_CANARY_TOKEN }}+prevent-uploads-tmp From f2a01a2be7e8adc0c4f6cf7a79acf208655a3b74 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Wed, 17 Jul 2024 10:18:06 +0200 Subject: [PATCH 2/3] debug --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72378583..b543ba5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -692,7 +692,7 @@ jobs: # canary builds build: - needs: [analyze] + # needs: [analyze] # only build canary build if # - prior steps succeeded, # - this is the main repo, and From 1d9202fb1178d3c2bc5b296d48961a9cdfb1d44e Mon Sep 17 00:00:00 2001 From: jaimergp Date: Wed, 17 Jul 2024 10:21:36 +0200 Subject: [PATCH 3/3] Revert debugging, this is ready --- .github/workflows/tests.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b543ba5d..096278f6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -692,19 +692,20 @@ jobs: # canary builds build: - # needs: [analyze] + name: Build canary + needs: [analyze] # only build canary build if # - prior steps succeeded, # - this is the main repo, and # - we are on the main, feature, or release branch - # if: >- - # !cancelled() - # && !github.event.repository.fork - # && ( - # github.ref_name == 'main' - # || startsWith(github.ref_name, 'feature/') - # || endsWith(github.ref_name, '.x') - # ) + if: >- + !cancelled() + && !github.event.repository.fork + && ( + github.ref_name == 'main' + || startsWith(github.ref_name, 'feature/') + || endsWith(github.ref_name, '.x') + ) runs-on: ubuntu-latest steps: # Clean checkout of specific git ref needed for package metadata version @@ -753,4 +754,4 @@ jobs: subdir: noarch anaconda-org-channel: conda-canary anaconda-org-label: ${{ env.ANACONDA_ORG_LABEL }} - anaconda-org-token: ${{ secrets.ANACONDA_ORG_CONDA_CANARY_TOKEN }}+prevent-uploads-tmp + anaconda-org-token: ${{ secrets.ANACONDA_ORG_CONDA_CANARY_TOKEN }}