use new platform logic

This commit is contained in:
Jacob Heider 2023-04-24 13:46:43 -04:00 committed by Jacob Heider
parent e1e606cfa6
commit d3caa70dc9
2 changed files with 4 additions and 5 deletions

View file

@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
has-artifacts: ${{ steps.has-artifacts.outputs.has-artifacts }} has-artifacts: ${{ steps.has-artifacts.outputs.has-artifacts }}
platforms: ${{ steps.has-artifacts.outputs.platforms }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# ^^ NOTE probably no longer required but I dont dare try to remove it # ^^ NOTE probably no longer required but I dont dare try to remove it
@ -30,11 +31,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
platform: platform: ${{ fromJson(needs.cd.outputs.platforms) }}
- darwin+x86-64
- linux+x86-64
- darwin+aarch64
- linux+aarch64
needs: [cd] needs: [cd]
if: ${{ needs.cd.outputs.has-artifacts == 'true' }} if: ${{ needs.cd.outputs.has-artifacts == 'true' }}
uses: ./.github/workflows/bottle.yml uses: ./.github/workflows/bottle.yml

View file

@ -8,6 +8,8 @@ versions:
dependencies: dependencies:
python.org: ~3.10 python.org: ~3.10
platform: darwin
build: build:
dependencies: dependencies:
pip.pypa.io: '*' pip.pypa.io: '*'