Skip to content

Commit

Permalink
Add macOS to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
varnerac committed Jan 2, 2021
1 parent 5bb77fc commit 2b02fe8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
pull_request:
branches: [ master ]


jobs:

build:
Expand All @@ -20,7 +19,5 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Compile
run: rebar3 compile
- name: Run tests
run: rebar3 do eunit, ct
run: chmod +x ./rebar3 && ./rebar3 do eunit, ct
31 changes: 31 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: macOS

on:
push:
pull_request:
branches: [master]

jobs:
macos:
strategy:
matrix:
os: [macos-11.0, macos-10.15]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Erlang
run: |
brew install erlang@22
- name: Run tests
run: |
export PATH="/usr/local/opt/erlang@22/bin:$(pwd)/rebar3:$PATH"
chmod +x ./rebar3
./rebar3 do eunit, ct
- uses: actions/upload-artifact@v2
if: failure()
with:
name: test-results
path: _build/test/logs/
2 changes: 1 addition & 1 deletion ct/rebar3_cargo_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ test_release_debug(Config) ->
{win32, _} -> ".exe";
{unix, _} -> ""
end]),
{ok, _} = rebar_utils:sh("rebar3 as prod compile", [{cd, AppDir}, {use_stdout, true}]),
{ok, _} = rebar_utils:sh("./rebar3 as prod compile", [{cd, AppDir}, {use_stdout, true}]),
{ok, "release"} = rebar_utils:sh(ReleaseExeName, [{cd, AppDir}, {use_stdout, true}]),

ok.
Empty file modified rebar3
100644 → 100755
Empty file.

0 comments on commit 2b02fe8

Please sign in to comment.