|
16 | 16 | ASDF_CONCURRENCY: 2 |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - build_from_installers: |
20 | | - name: asdf-awscli plugin test using prebuilt installers |
| 19 | + build: |
21 | 20 | strategy: |
22 | 21 | matrix: |
23 | 22 | os: |
24 | 23 | - ubuntu-latest |
25 | 24 | - macos-latest |
26 | | - # - windows-latest In theory this should work, but ASDF requires bash and |
| 25 | + # - windows-latest In theory this should work, but ASDF requires bash and friends |
27 | 26 | python-version: |
28 | 27 | - "3.8" |
29 | 28 | - "3.11" |
30 | 29 | cli-version: |
31 | 30 | - "latest:1" |
32 | 31 | - "latest:2" |
33 | | - coreutils: |
34 | | - - default |
35 | | - - latest |
| 32 | + - "source" |
| 33 | + include: |
| 34 | + - os: macos-latest |
| 35 | + coreutils: |
| 36 | + - default |
| 37 | + - latest |
36 | 38 | runs-on: ${{ matrix.os }} |
37 | 39 | steps: |
38 | 40 | - name: Setup homebrew if using latest coreutils |
@@ -61,44 +63,26 @@ jobs: |
61 | 63 | "${pythonLocation}/bin/python" --version |
62 | 64 | echo "${GITHUB_PATH}" |
63 | 65 | echo "${PATH}" |
64 | | -
|
| 66 | + |
65 | 67 | - name: asdf_plugin_test |
66 | 68 | uses: asdf-vm/actions/plugin-test@v2 |
67 | 69 | with: |
68 | 70 | command: aws --version |
69 | 71 | version: ${{ matrix.cli-version }} |
70 | 72 |
|
71 | | - build_from_source: |
72 | | - name: asdf-awscli plugin test using source |
73 | | - strategy: |
74 | | - matrix: |
75 | | - os: |
76 | | - - ubuntu-latest |
77 | | - - macos-latest |
78 | | - python-version: |
79 | | - - "3.8" |
80 | | - - "3.11" |
81 | | - runs-on: ${{ matrix.os }} |
82 | | - steps: |
83 | | - - name: Set up Python |
84 | | - uses: actions/setup-python@v4 |
85 | | - with: |
86 | | - python-version: ${{ matrix.python-version }} |
87 | | - |
88 | | - - name: Install asdf-awscli |
89 | | - uses: asdf-vm/actions/plugins-add@v2 |
90 | | - with: |
91 | | - tool_versions: | |
92 | | - # tools won't be installed by this action, only plugins |
93 | | - awscli |
| 73 | + - name: Retrieve latest version (source) |
| 74 | + if: matrix.cli-version == 'source' |
| 75 | + run: | |
| 76 | + echo "AWSCLI_VERSION=ref:$(asdf latest awscli 2)" >> "${GITHUB_ENV}" |
94 | 77 |
|
95 | | - - name: Retrieve latest version |
| 78 | + - name: Retrieve latest version (binary) |
| 79 | + if: matrix.cli-version != 'source' |
96 | 80 | run: | |
97 | | - echo "cli-version=ref:$(asdf latest awscli 2)" >> "${GITHUB_ENV}" |
| 81 | + echo "AWSCLI_VERSION=$(asdf latest awscli 2)" >> "${GITHUB_ENV}" |
98 | 82 |
|
99 | 83 | - name: asdf_plugin_test |
100 | 84 | uses: asdf-vm/actions/plugin-test@v2 |
101 | 85 | with: |
102 | | - skip_install: true |
103 | 86 | command: aws --version |
104 | | - version: ${{ env.cli-version }} |
| 87 | + |
| 88 | + version: ${{ env.AWSCLI_VERSION || '' }} |
0 commit comments