2021-02-02 12:05:47 +01:00
|
|
|
name: miniooni
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'release/**'
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * */1"
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-03-02 12:08:24 +01:00
|
|
|
go-version: "1.16"
|
2021-02-02 12:05:47 +01:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-02-02 15:34:03 +01:00
|
|
|
- run: ./build-miniooni.sh linux
|
2021-02-02 12:05:47 +01:00
|
|
|
- run: ./CLI/linux/amd64/miniooni --yes -nNi https://example.com web_connectivity
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: miniooni-linux-386
|
|
|
|
path: ./CLI/linux/386/miniooni
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: miniooni-linux-amd64
|
|
|
|
path: ./CLI/linux/amd64/miniooni
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2021-02-02 15:34:03 +01:00
|
|
|
name: miniooni-linux-arm
|
|
|
|
path: ./CLI/linux/arm/miniooni
|
2021-02-02 12:05:47 +01:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: miniooni-linux-arm64
|
|
|
|
path: ./CLI/linux/arm64/miniooni
|
|
|
|
|
2021-02-02 15:34:03 +01:00
|
|
|
- run: ./build-miniooni.sh darwin
|
2021-02-02 12:05:47 +01:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: miniooni-darwin-amd64
|
|
|
|
path: ./CLI/darwin/amd64/miniooni
|
|
|
|
|
|
|
|
- run: sudo apt install --yes mingw-w64
|
2021-02-02 15:34:03 +01:00
|
|
|
- run: ./build-miniooni.sh windows
|
2021-02-02 12:05:47 +01:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: miniooni-windows-amd64.exe
|
|
|
|
path: ./CLI/windows/amd64/miniooni.exe
|