naett.c

Tiny cross-platform HTTP / HTTPS client library in C.
git clone git://git.finwo.net/lib/naett.c
Log | Files | Refs | README | LICENSE

commit 67de6596357f45cbcaebb196c87800b7b6fa510e
parent 14d921c0417149e60bdf8d086e86d7ff5c964484
Author: Erik Agsjö <erik.agsjo@gmail.com>
Date:   Sun, 12 Dec 2021 22:53:11 +0100

Action for android

Diffstat:
A.github/workflows/android.yml | 29+++++++++++++++++++++++++++++
D.github/workflows/branch.yml | 38--------------------------------------
A.github/workflows/cmdline.yml | 38++++++++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+), 38 deletions(-)

diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml @@ -0,0 +1,29 @@ +name: Android tests + +on: + push: + branches-ignore: + - 'test-*' + +jobs: + + build: + name: Test + runs-on: macos-latest + steps: + + - name: Set up Go 1.17 + uses: actions/setup-go@v1 + with: + go-version: 1.17 + id: go + + - name: Check out code + uses: actions/checkout@v2 + + - name: Run tests + working-directory: ./testrig + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: (go run rig.go &) && ./gradlew connectedCheck diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml @@ -1,38 +0,0 @@ -name: Branch build - -on: - push: - branches-ignore: - - 'test-*' - -jobs: - - build: - name: Build - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - steps: - - - name: Set up Go 1.17 - uses: actions/setup-go@v1 - with: - go-version: 1.17 - id: go - - - name: Check out code - uses: actions/checkout@v1 - - - name: Install windows build helpers - if: startsWith(matrix.os, 'windows') - run: choco install mingw - - - name: Install libcurl - if: startsWith(matrix.os, 'ubuntu') - run: sudo apt install libcurl4-openssl-dev - - - name: Run tests - run: go run ./rig.go - working-directory: ./testrig - diff --git a/.github/workflows/cmdline.yml b/.github/workflows/cmdline.yml @@ -0,0 +1,38 @@ +name: Commandline tests + +on: + push: + branches-ignore: + - 'test-*' + +jobs: + + build: + name: Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + steps: + + - name: Set up Go 1.17 + uses: actions/setup-go@v1 + with: + go-version: 1.17 + id: go + + - name: Check out code + uses: actions/checkout@v2 + + - name: Install windows build helpers + if: startsWith(matrix.os, 'windows') + run: choco install mingw + + - name: Install libcurl + if: startsWith(matrix.os, 'ubuntu') + run: sudo apt install libcurl4-openssl-dev + + - name: Run tests + run: go run ./rig.go + working-directory: ./testrig +