forked from demergent-labs/azle
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 2.08 KB
/
build_templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build Templates
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
jobs:
workflow-config:
name: Determine workflow config
runs-on: ubuntu-latest
outputs:
is-dependabot: ${{ steps.determine-workflow-config.outputs.is-dependabot }}
steps:
- uses: actions/checkout@v4
- id: determine-workflow-config
uses: ./.github/actions/determine_workflow_config
with:
is-workflow-dispatch: false
exclude-slow-dispatch-input-value: false
exclude-unstable-dispatch-input-value: false
exclude-release-only-dispatch-input-value: false
link-azle-dispatch-input-value: false
build-templates:
name: Build templates for Dependabot
needs: workflow-config
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
runs-on: ubuntu-latest
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.LASTMJS_GITHUB_TOKEN }}
- uses: ./.github/actions/setup_node
- uses: ./.github/actions/setup_dfx
- run: npm install
- name: Install global dependencies
run: |
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic
- name: Build stable template
run: AZLE_VERBOSE=true npx azle template
- name: Build experimental template
run: AZLE_VERBOSE=true npx azle template --experimental
- uses: ./.github/actions/commit_and_push
with:
branch-name: ${{ github.head_ref }}
commit-message: 'chore: update templates for dependency changes'
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}