Skip to content

use github action's test status badge. #574

use github action's test status badge.

use github action's test status badge. #574

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: System Setup
shell: bash
run: |
sudo apt update -y
sudo apt install -qq libcurl4-gnutls-dev
- name: Run Tests
run: |
make
sudo make test
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: System Setup
shell: bash
run: brew install curl
- name: Run Tests
run: |
make
sudo make test
windows:
name: Windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: System Setup
shell: bash
run: |
mkdir -p dockcross
sudo docker run --rm dockcross/windows-x64 > dockcross-windows-x64
cat dockcross-windows-x64
chmod +x dockcross-windows-x64
wget https://curl.haxx.se/download/curl-7.80.0.tar.gz
tar xzf curl-*
CURL_SRC=curl-*
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && ./configure --prefix="/work/deps/curl" --host=x86_64-w64-mingw32.static --disable-shared --with-schannel --disable-dependency-tracking --enable-threaded-resolver --disable-imap --disable-pop3 --disable-smtp --disable-ldap --disable-mqtt --disable-smb'
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && make'
./dockcross-windows-x64 bash -c 'cd '"$CURL_SRC"' && make install'
- name: Run Tests
run: |
## if builds pass then its passing for now
./dockcross-windows-x64 make all STATIC=true EXE=true