diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63e01d1..be53002 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 diff --git a/rapidyenc_darwin.go b/rapidyenc_darwin.go new file mode 100644 index 0000000..6dde832 --- /dev/null +++ b/rapidyenc_darwin.go @@ -0,0 +1,6 @@ +package rapidyenc + +/* +#cgo LDFLAGS: ${SRCDIR}/lib/librapidyenc_darwin.a -lstdc++ +*/ +import "C" diff --git a/rapidyenc_darwin_arm64.go b/rapidyenc_darwin_arm64.go deleted file mode 100644 index 969299f..0000000 --- a/rapidyenc_darwin_arm64.go +++ /dev/null @@ -1,6 +0,0 @@ -package rapidyenc - -/* -#cgo LDFLAGS: ${SRCDIR}/lib/librapidyenc_darwin_arm64.a -lstdc++ -*/ -import "C"