forked from itspngu/asdf-azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.05 KB
/
test.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
name: CI
on:
workflow_dispatch:
push:
branches:
- master
paths:
- "bin/*"
- ".github/workflows/*"
pull_request:
paths:
- "bin/*"
- ".github/workflows/*"
jobs:
plugin_test:
name: asdf plugin test
strategy:
matrix:
os:
- ubuntu-latest
- macos-11
runs-on: ${{ matrix.os }}
steps:
- name: Install extras
if: ${{ matrix.os == 'macos-11'}}
run: |
brew install bzip2 lbzip2 lzlib openssl readline sqlite3 tcl-tk xz zlib
brew install asdf
asdf plugin add python
LDFLAGS="-L/usr/local/opt/bzip2/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib" CFLAGS="-I/usr/local/opt/bzip2/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -I$(xcrun --show-sdk-path)/usr/include -Wno-implicit-function-declaration" asdf install python 3.11.6
- uses: asdf-vm/actions/plugin-test@v3
with:
command: az version
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}