Skip to content

Replace hardcoded utf8 bom with erlang function #18

Replace hardcoded utf8 bom with erlang function

Replace hardcoded utf8 bom with erlang function #18

Workflow file for this run

name: "test mix.create_keychain"
on: ["push", "pull_request"]
env:
OTP_VERSION: 24.3.4.15
ELIXIR_VERSION: 1.14.5
ELIXIR_VARIANT: -otp-24
jobs:
macos:
runs-on: macos-11
steps:
- name: asdf cache
uses: actions/cache@v3
id: asdf-cache
with:
path: /Users/runner/.asdf
key: macos-otp-${{ env.OTP_VERSION }}
- name: "Installing Erlang"
if: steps.asdf-cache.outputs.cache-hit != 'true'
run: |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
. $HOME/.asdf/asdf.sh
asdf plugin add erlang
asdf plugin add elixir
echo "erlang ${{ env.OTP_VERSION }}" >> .tool-versions
echo "elixir ${{ env.ELIXIR_VERSION }}${{ env.ELIXIR_VARIANT }}" >> .tool-versions
brew install binutils coreutils wget wxwidgets automake autoconf libtool
asdf install
- name: Save asdf cache
if: steps.asdf-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: /Users/runner/.asdf
key: macos-otp-${{ env.OTP_VERSION }}
- uses: actions/checkout@v3
- name: "Create keychain"
env:
MACOS_PEM: ${{ secrets.MACOS_PEM }}
run: |
echo "erlang ${{ env.OTP_VERSION }}" > .tool-versions
echo "elixir ${{ env.ELIXIR_VERSION }}${{ env.ELIXIR_VARIANT }}" >> .tool-versions
. $HOME/.asdf/asdf.sh
mix local.hex --force
mix local.rebar --force
mix deps.get
mix lint
mix desktop.create_keychain
export MACOS_KEYCHAIN=$HOME/Library/Keychains/macos-build.keychain
mix test test/codesign_test.exs