|
6 | 6 | package_path: |
7 | 7 | description: Path to directory with package to release |
8 | 8 | required: true |
9 | | - type: string |
| 9 | + default: 'clients/rust' |
| 10 | + type: choice |
| 11 | + options: |
| 12 | + - clients/rust |
| 13 | + - interface |
| 14 | + - program |
10 | 15 | level: |
11 | 16 | description: Level |
12 | 17 | required: true |
@@ -47,14 +52,14 @@ jobs: |
47 | 52 | - name: Setup Environment |
48 | 53 | uses: ./.github/actions/setup |
49 | 54 | with: |
50 | | - cargo-cache-key: cargo-rust-${{ github.event.inputs.package_path }} |
| 55 | + cargo-cache-key: cargo-rust-${{ inputs.package_path }} |
51 | 56 | clippy: true |
52 | 57 | rustfmt: true |
53 | 58 | solana: true |
54 | 59 |
|
55 | 60 | - name: Convert package_path to required variables |
56 | 61 | run: | |
57 | | - PACKAGE_PATH="${{ github.event.inputs.package_path }}" |
| 62 | + PACKAGE_PATH="${{ inputs.package_path }}" |
58 | 63 | RECIPE_SUFFIX="${PACKAGE_PATH//\//-}" |
59 | 64 | TAG_PREFIX="$(basename "$PACKAGE_PATH")" |
60 | 65 |
|
|
67 | 72 | - name: Lint |
68 | 73 | run: make clippy-${{ env.RECIPE_SUFFIX }} |
69 | 74 |
|
70 | | - - name: Build |
71 | | - run: make build-${{ env.RECIPE_SUFFIX }} |
| 75 | + - name: Build Program |
| 76 | + run: make build-program |
72 | 77 |
|
73 | 78 | - name: Test |
74 | 79 | run: make test-${{ env.RECIPE_SUFFIX }} |
|
86 | 91 | - name: Setup Environment |
87 | 92 | uses: ./.github/actions/setup |
88 | 93 | with: |
89 | | - cargo-cache-key: cargo-publish-rust-${{ github.event.inputs.package_path }} |
90 | | - cargo-cache-fallback-key: cargo-rust-${{ github.event.inputs.package_path }} |
| 94 | + cargo-cache-key: cargo-publish-rust-${{ inputs.package_path }} |
| 95 | + cargo-cache-fallback-key: cargo-rust-${{ inputs.package_path }} |
91 | 96 | clippy: true |
92 | 97 | rustfmt: true |
93 | 98 |
|
@@ -125,10 +130,10 @@ jobs: |
125 | 130 | OPTIONS="" |
126 | 131 | fi |
127 | 132 |
|
128 | | - ./scripts/publish-rust.sh ${{ github.event.inputs.package_path }} $LEVEL $OPTIONS |
| 133 | + ./scripts/publish-rust.sh ${{ inputs.package_path }} $LEVEL $OPTIONS |
129 | 134 |
|
130 | 135 | - name: Create GitHub release |
131 | | - if: github.event.inputs.create_release == 'true' && github.event.inputs.dry_run != 'true' |
| 136 | + if: inputs.create_release == 'true' && inputs.dry_run != 'true' |
132 | 137 | uses: ncipollo/release-action@v1 |
133 | 138 | with: |
134 | 139 | tag: ${{ env.TAG_PREFIX }}@v${{ steps.publish.outputs.new_version }} |
0 commit comments