Skip to content

Commit

Permalink
Use setup-beam to have a single test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Sep 13, 2022
1 parent 1ec2923 commit 176e8e7
Showing 1 changed file with 6 additions and 68 deletions.
74 changes: 6 additions & 68 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,43 +100,9 @@ jobs:
working-directory: rustler_mix
run: ./test.sh

test_windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install Erlang/Elixir
run: choco install elixir

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Extend PATH
run: echo "C:\\ProgramData\\chocolatey\\lib\\Elixir\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Hex
run: mix local.hex --force

- name: Test rustler_mix
working-directory: rustler_mix
run: |
mix deps.get
mix test
- name: Test rustler_tests
working-directory: rustler_tests
run: |
mix deps.get
mix test
test:
name: OTP ${{matrix.pair.erlang}} / Elixir ${{matrix.pair.elixir}} / Rust ${{matrix.rust}}
runs-on: ubuntu-latest
name: OTP ${{matrix.pair.erlang}} / Elixir ${{matrix.pair.elixir}} / Rust ${{matrix.rust}} / OS ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
matrix:
pair:
Expand All @@ -149,6 +115,10 @@ jobs:
- stable
- beta
- nightly
os:
- windows
- ubuntu
- macos
steps:
- name: Checkout sources
uses: actions/checkout@v1
Expand Down Expand Up @@ -178,35 +148,3 @@ jobs:
run: |
mix deps.get
mix test
test_macos:
name: macos-11 test
runs-on: macos-11
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install Erlang/Elixir
run: |
brew install elixir
mix local.hex --force
- name: Install Rust ${{matrix.rust}} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- run: cargo test

- name: Test rustler_mix
working-directory: rustler_mix
run: |
mix deps.get
mix test
- name: Test rustler_tests
working-directory: rustler_tests
run: |
mix deps.get
mix test

0 comments on commit 176e8e7

Please sign in to comment.