From e2195f193c6ce8fd0954c65508dd95c145ca82ef Mon Sep 17 00:00:00 2001 From: Ciro Date: Thu, 3 Nov 2022 18:38:59 -0300 Subject: [PATCH] workflow with macos + linux --- .github/workflows/c-cpp.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 5d2cd44..e546e54 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,13 +2,30 @@ name: Build on: workflow_dispatch jobs: + build-macos: + runs-on: macos-11.0 + name: Build on darwin-amd64 + steps: + - name: Update binaries + run: | + git clone -b workflows-test --recursive https://github.com/cirospaciari/socketify.py.git + cd socketify.py/src/socketify/native + make macos + cd ../ + git add libsocketify_darwin_amd64.so + git add libsocketify_darwin_arm64.so + git config --global user.email "ciro.spaciari@gmail.com" + git config --global user.name "Ciro Spaciari" + git commit -a -m "[GitHub Actions] Updated darwin-amd64 binaries" || true + git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git" workflows-test build-linux: runs-on: ubuntu-latest - name: Build on amd64 + name: Build on linux-amd64 steps: - name: Update binaries run: | sudo apt update || true + sudo apt install -y libuv1-dev sudo apt install -y g++-aarch64-linux-gnu || true git clone -b workflows-test --recursive https://github.com/cirospaciari/socketify.py.git cd socketify.py/src/socketify/native @@ -18,5 +35,4 @@ jobs: git config --global user.email "ciro.spaciari@gmail.com" git config --global user.name "Ciro Spaciari" git commit -a -m "[GitHub Actions] Updated linux-amd64 binaries" || true - git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git" workflows-test - \ No newline at end of file + git push "https://cirospaciari:${{ secrets.BUILDTOKEN }}@github.com/cirospaciari/socketify.py.git" workflows-test \ No newline at end of file