diff --git a/.github/workflows/build-cnfa.yml b/.github/workflows/build-cnfa.yml index 8f74ef9..fb5bd7a 100644 --- a/.github/workflows/build-cnfa.yml +++ b/.github/workflows/build-cnfa.yml @@ -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 }}." @@ -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 }}." @@ -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 diff --git a/wave_player/Makefile b/wave_player/Makefile index 97672cf..7a5dde9 100644 --- a/wave_player/Makefile +++ b/wave_player/Makefile @@ -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)