Skip to content

Commit

Permalink
Windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
mnightingale committed Oct 28, 2023
1 parent c9696aa commit 53d7617
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
include:
- os: ubuntu-latest
platform: linux/amd64
# - os: ubuntu-latest
# platform: linux/arm64
- os: ubuntu-latest
platform: linux/arm64
- os: macos-latest
- os: windows-latest

steps:
- name: Checkout code
Expand Down Expand Up @@ -53,10 +54,18 @@ jobs:
-D CMAKE_BUILD_TYPE=Release
cmake --build rapidyenc/build --target rapidyenc_static -j$(sysctl -n hw.ncpu)
- name: Build native
- name: Build macos
if: matrix.os == 'macos-latest'
run: |
cmake -S rapidyenc -B rapidyenc/build \
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-D CMAKE_BUILD_TYPE=Release
cmake --build rapidyenc/build --target rapidyenc_static -j$(sysctl -n hw.ncpu)
- name: Build windows
if: matrix.os == 'windows-latest'
run: |
cmake -S rapidyenc -B rapidyenc/build \
-D CMAKE_BUILD_TYPE=Release
cmake --build rapidyenc/build --target rapidyenc_static -j$(sysctl -n hw.ncpu)
ls -al rapidyenc/build
6 changes: 6 additions & 0 deletions rapidyenc_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package rapidyenc

/*
#cgo LDFLAGS: ${SRCDIR}/lib/librapidyenc_darwin.a -lstdc++
*/
import "C"
6 changes: 0 additions & 6 deletions rapidyenc_darwin_arm64.go

This file was deleted.

0 comments on commit 53d7617

Please sign in to comment.