Skip to content

build(deps): bump actions/download-artifact in /.github/workflows #255

build(deps): bump actions/download-artifact in /.github/workflows

build(deps): bump actions/download-artifact in /.github/workflows #255

Workflow file for this run

name: C library
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Install packages
run: |
sudo apt update
sudo apt install -y -o Acquire::Retries=50 \
autoconf-archive valgrind openssl xxd asn1c
- name: Autotools
working-directory: c
run: |
./autogen.sh
- name: Configure
working-directory: c
run: |
./configure
- name: Build
working-directory: c
run: |
make
- name: Test
working-directory: c
run: |
make check
make check-valgrind
- name: Upload failure artifacts
uses: actions/upload-artifact@v1
if: failure()
with:
name: failed
path: c
- name: Distribution
working-directory: c
run: |
make distcheck VERSION=artifact
- name: Install
working-directory: c
run: |
make
sudo make install
sudo ldconfig
- name: Usage test
working-directory: c/src
run: |
pkg-config --modversion cx
gcc -o linktest.o -c linktest.c `pkg-config --cflags cx`
gcc -o linktest linktest.o `pkg-config --libs cx`
ldd ./linktest | grep libcx.so
./linktest
- name: Upload build artifacts
uses: actions/upload-artifact@v1
with:
name: libcx.tar.gz
path: c/libcx-artifact.tar.gz
clang:
name: Build (Clang)
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Install packages
run: |
sudo apt update
sudo apt install -y -o Acquire::Retries=50 \
autoconf-archive valgrind openssl xxd asn1c clang
- name: Autotools
working-directory: c
run: |
./autogen.sh
- name: Configure
working-directory: c
run: |
CC=clang ./configure
- name: Build
working-directory: c
run: |
make
- name: Test
working-directory: c
run: |
make check
make check-valgrind