From 4dfee84148acf26f8c71a40ecad2e36d62434e8d Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 3 Oct 2023 15:14:33 +0900 Subject: [PATCH] infra/ios: added basic CI git action workflow. --- .github/workflows/build_ios.yml | 62 +++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/build_ios.yml diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml new file mode 100644 index 00000000..e5d9ea4d --- /dev/null +++ b/.github/workflows/build_ios.yml @@ -0,0 +1,62 @@ +name: iOS + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + build_x86_64: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Packages + run: | + export HOMEBREW_NO_INSTALL_FROM_API=1 + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + brew unlink node@18 + brew update + brew upgrade + brew install meson + + - name: Build + run: | + meson setup --backend=ninja build -Dlog=true -Dloaders="all" -Dstatic=true -Dsavers="all" -Dbindings="capi" --cross-file ./ios_x86_64_cross.txt + ninja -C build install + + - uses: actions/upload-artifact@v3 + with: + name: result + path: build/src/libthorvg* + + build_armv64: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Packages + run: | + export HOMEBREW_NO_INSTALL_FROM_API=1 + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + brew unlink node@18 + brew update + brew upgrade + brew install meson + + - name: Build + run: | + meson setup --backend=ninja build -Dlog=true -Dloaders="all" -Dstatic=true -Dsavers="all" -Dbindings="capi" --cross-file ./ios_arm64_cross.txt + ninja -C build install + + - uses: actions/upload-artifact@v3 + with: + name: result + path: build/src/libthorvg* \ No newline at end of file