Skip to content

Commit 419b107

Browse files
committed
ci(python): use re-usable python uniffi CI/CD workflow
1 parent 64bad8c commit 419b107

File tree

6 files changed

+1464
-161
lines changed

6 files changed

+1464
-161
lines changed

.github/workflows/ci_cd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI/CD
2+
3+
on:
4+
push: # A push indicates that a PR is merged and CD should be triggered
5+
branches:
6+
- main
7+
pull_request: # For PRs, we run CI, which is the same as CD without the release step(s)
8+
branches:
9+
- main
10+
11+
jobs:
12+
# A setup job to define the matricies that will be used across all of the jobs in this workflow
13+
setup:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
# The packages that use Uniffi bindings
17+
uniffi_packages: ${{ steps.set_uniffi_packages.outputs.uniffi_packages }}
18+
steps:
19+
- id: set_uniffi_packages
20+
run: echo 'uniffi_packages=["algokit_transact"]' >> $GITHUB_OUTPUT
21+
22+
23+
python_uniffi_ci_cd:
24+
needs: setup
25+
uses: ./.github/workflows/python_uniffi_ci_cd.yml
26+
strategy:
27+
matrix:
28+
crate: ${{ fromJSON(needs.setup.outputs.uniffi_packages) }}
29+
with:
30+
crate: ${{ matrix.crate }}
31+
release: ${{ github.event_name == 'push' }}
32+
secrets:
33+
BOT_ID: ${{ secrets.BOT_ID }}
34+
BOT_SK: ${{ secrets.BOT_SK }}

.github/workflows/python.yml

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)