Skip to content

Commit

Permalink
Add Build & Test pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 16, 2023
1 parent ba30ae0 commit b1a9fcf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: Build & Test

# Controls when the action will run.
on:
# Triggers the workflow on all push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

schedule:
- cron: "0 0 * * *"

# added using https://github.com/step-security/secure-repo
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build_and_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Build
run: make all

- name: Test
run: make test
4 changes: 4 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
*
*/

#if defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
Expand Down

0 comments on commit b1a9fcf

Please sign in to comment.