-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (48 loc) · 1.62 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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