diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 0000000..a9c31bb --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -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 diff --git a/test.c b/test.c index 11653eb..497029f 100644 --- a/test.c +++ b/test.c @@ -25,7 +25,11 @@ * */ +#if defined(__FreeBSD__) #include +#else +#include +#endif #include #include #include