Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/build-cnfa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- '**'
jobs:
Explore-GitHub-Actions:
Build-CNFA-Linux:
runs-on: ubuntu-latest
steps:
- run: echo "Triggered by ${{ github.event_name }} on ${{ runner.os }}. Branch Ref ${{ github.ref }}."
Expand All @@ -29,16 +29,26 @@ jobs:
run: |
rm CNFA_sf.h
make CNFA_sf.h
make wav_player
#- name: Commit CNFA_sf.h
# run: |
# git_hash=$(git rev-parse --short "$GITHUB_SHA")
# git commit -m "Updating CNFA_sf.h to ${git_hash}" CNFA_sf.h
- uses: actions/upload-artifact@v4
with:
name: cnfa_sf
name: CNFA_sf.h
path: CNFA_sf.h
- uses: actions/upload-artifact@v4
with:
name: libCNFA.so
path: libCNFA.so
- uses: actions/upload-artifact@v4
with:
name: wav_player_linux
path: wav_player


Build-CNFA:
Build-libCNFA-Mac:
runs-on: macos-latest
steps:
- run: echo "Triggered by ${{ github.event_name }} on ${{ runner.os }}. Branch Ref ${{ github.ref }}."
Expand All @@ -53,5 +63,9 @@ jobs:
make
- uses: actions/upload-artifact@v4
with:
name: cnfa_sf
path: CNFA_sf.h
name: libCNFA.dylib
path: libCNFA.so
- uses: actions/upload-artifact@v4
with:
name: wav_player_mac
path: wav_player
2 changes: 1 addition & 1 deletion wave_player/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ C_SRCS = wav_player.c
OUT := wav_player

CFLAGS = -O2 -g -DUSE_SHARED
LDFLAGS = -L../. -Wl,-rpath=. -lCNFA -lm
LDFLAGS = -L../. -Wl,-rpath,. -lCNFA -lm
CC ?= gcc -std=c99

OBJS := $(C_SRCS:.c=.o)
Expand Down