chore(.github): setup github actions

github-actions
Joseph Werle 3 years ago
parent 92c3225eed
commit 25880f928e
No known key found for this signature in database
GPG Key ID: 1F1A11D579A11823

@ -0,0 +1,61 @@
name: Tests
on: push
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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@v2
- name: System Setup
shell: bash
run: |
wget https://curl.haxx.se/download/curl-7.69.1.tar.gz
tar xzf curl-*
cd curl-*
./configure --with-darwinssl
make
sudo make install
- name: Run Tests
run: |
make
sudo make test
windows:
name: Windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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.69.1.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 --with-winssl --disable-dependency-tracking --disable-pthreads --disable-pthreads --enable-threaded-resolver'
./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 NO_PTHREADS=1 STATIC=true EXE=true

@ -10,3 +10,8 @@ default:
$(COMMANDS):
@$(SETUP) $@
setup:
$(SETUP)
test:
./test.sh

@ -245,7 +245,7 @@ bpkg_install_from_remote () {
name="${pkg_parts[0]}"
version="${pkg_parts[1]}"
else
error 'Error parsing package version'
error 'Error parsing package version'
return 1
fi
@ -273,7 +273,6 @@ bpkg_install_from_remote () {
name=${name/@*//}
name=${name////}
## check to see if remote is raw with oauth (GHE)
if [[ "${remote:0:10}" == "raw-oauth|" ]]; then
info 'Using OAUTH basic with content requests'

@ -0,0 +1,18 @@
#!/bin/bash
rm -rf deps/
./bpkg-update
./bpkg-list
./bpkg-show bpkg/github
./bpkg-install bpkg/term
rm -rf deps/
mkdir -p tmp/bin
PREFIX=$CWD/tmp bpkg-install bpkg/github -g
test -f tmp/bin/github || exit 1
rm -rf tmp
Loading…
Cancel
Save