-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (34 loc) · 1014 Bytes
/
plugins-pr.yaml
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
jobs:
plugins:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
TARGET: linux
BINARY: jx-admin
- os: macos-latest
TARGET: darwin
BINARY: jx-admin
- os: windows-latest
TARGET: win
BINARY: jx-admin-windows-amd64.exe
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.22'
- run: make ${{ matrix.target }}
- run: |
./build/${{ matrix.target }}/${{ matrix.binary }} version
./build/${{ matrix.target }}/${{ matrix.binary }} plugin upgrade
./build/${{ matrix.target }}/${{ matrix.binary }} --help
- run: ls -al ~/.jx3/plugins/bin
if: ${{ runner.os != 'Windows' }}
- run: dir ~\.jx3\plugins\bin
if: ${{ runner.os == 'Windows' }}
on:
pull_request:
branches:
- main