Removed deprecated workaround for dockercross/arm #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: ["push", "pull_request"] | |
env: | |
OTP_TAG: OTP-25.0.4 | |
OTP_SOURCE: https://github.com/erlang/otp | |
jobs: | |
build: | |
name: "Build Android runtimes" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
arch: ["arm", "arm64", "x86_64"] | |
steps: | |
- run: | | |
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb | |
sudo apt-get update | |
sudo apt-get install esl-erlang inotify-tools | |
- uses: actions/checkout@v2 | |
- run: | | |
scripts/install_elixir.sh "$HOME/elixir" | |
echo "$HOME/elixir/bin" >> $GITHUB_PATH | |
- name: Build Android ${{ matrix.arch }} runtimes | |
run: | | |
mix deps.get | |
ARCH=${{ matrix.arch }} mix package.android.runtime | |
ARCH=${{ matrix.arch }} mix package.android.nif | |
- name: Archive Android runtimes | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.arch }}-runtime | |
path: _build/*.zip | |
- name: Android ${{ matrix.arch }} release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: _build/*.zip | |
ios: | |
name: "Build iOS runtime" | |
runs-on: "macos-latest" | |
steps: | |
- run: brew install git elixir carthage coreutils | |
- uses: actions/checkout@v2 | |
- name: Build runtime | |
run: mix package.ios.runtime | |
- name: Archive runtimes | |
uses: actions/upload-artifact@v2 | |
with: | |
name: iOS-runtime | |
path: _build/liberlang.xcframework | |
- name: iOS release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: _build/liberlang.xcframework |