Skip to content

Commit

Permalink
thread & url (#3)
Browse files Browse the repository at this point in the history
* thread & url

* fix cirrus

* fix thread

* fix thread

* split actions

* test

* fix test

* fix windows thread

* cond & fail-fast
  • Loading branch information
tezc authored Nov 16, 2020
1 parent e3d95ee commit 42383fd
Show file tree
Hide file tree
Showing 53 changed files with 2,054 additions and 453 deletions.
6 changes: 2 additions & 4 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
freebsd_task:
only_if: $CIRRUS_BRANCH == 'master'
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
freebsd_instance:
image_family: freebsd-12-1
cpu: 1
memory: 2G
test_script:
- pkg install -y git cmake
- mkdir build && cd build
- cmake -DSANITIZER=address .. && make -j && make check && rm -rf *
- cmake -DSANITIZER=undefined .. && make -j && make check && rm -rf *
- cmake -DSANITIZER=address .. && make && make check && rm -rf *
- cmake -DSANITIZER=undefined .. && make && make check && rm -rf *
34 changes: 34 additions & 0 deletions .github/workflows/.aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
archs:
# The host should always be linux
runs-on: ubuntu-18.04
name: Build on aarch64
steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.0.7
name: Build artifact
id: build
with:
arch: aarch64
distro: ubuntu20.04

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/sh

# Produce a binary artifact and place it in the mounted volume
run: |
apt-get update -q -y
apt-get install -q -y build-essential git gcc valgrind cmake
uname -a;id;uname -m;lscpu | grep Endian
mkdir build && cd build
cmake .. && make -j && make check
152 changes: 0 additions & 152 deletions .github/workflows/.actions.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/.armv6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
archs:
# The host should always be linux
runs-on: ubuntu-18.04
name: Build on armv6
steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.0.7
name: Build artifact
id: build
with:
arch: armv6
distro: buster

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/sh

# Produce a binary artifact and place it in the mounted volume
run: |
apt-get update -q -y
apt-get install -q -y build-essential git gcc valgrind cmake
uname -a;id;uname -m;lscpu | grep Endian
mkdir build && cd build
cmake .. && make -j && make check
34 changes: 34 additions & 0 deletions .github/workflows/.armv7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
archs:
# The host should always be linux
runs-on: ubuntu-18.04
name: Build on armv7
steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.0.7
name: Build artifact
id: build
with:
arch: armv7
distro: buster

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/sh

# Produce a binary artifact and place it in the mounted volume
run: |
apt-get update -q -y
apt-get install -q -y build-essential git gcc valgrind cmake
uname -a;id;uname -m;lscpu | grep Endian
mkdir build && cd build
cmake .. && make -j && make check
21 changes: 21 additions & 0 deletions .github/workflows/.coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage:
runs-on: ubuntu-latest
name: Coverage
steps:
- uses: actions/checkout@v2.1.0
- name: build
run: |
sudo apt-get install cmake lcov
mkdir build-debug && cd build-debug
cmake .. -DCMAKE_BUILD_TYPE=Coverage
make -j
make coverage
bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${{ secrets.CODECOV }}
31 changes: 31 additions & 0 deletions .github/workflows/.macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
macos:
runs-on: macos-latest
name: Build on Mac OS

strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]

steps:
- uses: actions/checkout@v2.1.0
- name: build
env:
CC: ${{ matrix.compiler }}
run: |
mkdir build-debug && cd build-debug
cmake .. -DSANITIZER=address
make -j
make check
rm -rf *
cmake .. -DSANITIZER=undefined
make -j
make check
34 changes: 34 additions & 0 deletions .github/workflows/.ppc64le.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
archs:
# The host should always be linux
runs-on: ubuntu-18.04
name: Build on ppc64le
steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.0.7
name: Build artifact
id: build
with:
arch: ppc64le
distro: ubuntu20.04

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# The shell to run commands with in the container
shell: /bin/sh

# Produce a binary artifact and place it in the mounted volume
run: |
apt-get update -q -y
apt-get install -q -y build-essential git gcc valgrind cmake
uname -a;id;uname -m;lscpu | grep Endian
mkdir build && cd build
cmake .. && make -j && make check
Loading

0 comments on commit 42383fd

Please sign in to comment.