Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
intjelic committed Oct 22, 2024
1 parent e96f0ff commit 57a00ba
Showing 1 changed file with 41 additions and 30 deletions.
71 changes: 41 additions & 30 deletions .github/workflows/setup-erlang-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ jobs:
# erlang-version: ${{ matrix.version }}
# - run: cd otp-release-erlang-mk && make rel

nif-library-rebar3:
strategy:
matrix:
platforms: [ubuntu, macos, windows]
version: [25] # [25, 26, 27]
runs-on: ${{ matrix.platforms }}-latest
steps:
- uses: actions/checkout@v4
- uses: erlangsters/setup-erlang@v1
with:
erlang-version: ${{ matrix.version }}
install-rebar3: true
- run: |
cd nif-library-rebar3
rebar3 compile
rebar3 eunit
# nif-library-rebar3:
# strategy:
# matrix:
# platforms: [ubuntu, macos, windows]
# version: [25] # [25, 26, 27]
# runs-on: ${{ matrix.platforms }}-latest
# steps:
# - uses: actions/checkout@v4
# - uses: erlangsters/setup-erlang@v1
# with:
# erlang-version: ${{ matrix.version }}
# install-rebar3: true
# - run: |
# cd nif-library-rebar3
# rebar3 compile
# rebar3 eunit

nif-library-erlang-mk:
strategy:
Expand All @@ -58,23 +58,34 @@ jobs:
runs-on: ${{ matrix.platforms }}-latest
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
git
make
mingw-w64-x86_64-gcc
- uses: erlangsters/setup-erlang@v1.0.1
id: setup-erlang
with:
erlang-version: ${{ matrix.version }}
- shell: msys2 {0}
run: |
- run: |
ls ${{ steps.setup-erlang.outputs.erlang-location }}
ls ${{ steps.setup-erlang.outputs.erlang-location }}/bin
cd nif-library-erlang-mk
make
make eunit
env:
PATH: ${{ steps.setup-erlang.outputs.erlang-location }}/bin:$PATH
# - uses: msys2/setup-msys2@v2
# with:
# update: true
# install: >-
# git
# make
# mingw-w64-x86_64-gcc
# - shell: msys2 {0}
# run: |
# echo $PATH
# - uses: erlangsters/setup-erlang@v1.0.1
# id: setup-erlang
# with:
# erlang-version: ${{ matrix.version }}
# - shell: msys2 {0}
# run: |
# ls ${{ steps.setup-erlang.outputs.erlang-location }}
# ls ${{ steps.setup-erlang.outputs.erlang-location }}/bin
# cd nif-library-erlang-mk
# make
# make eunit
# env:
# PATH: ${{ steps.setup-erlang.outputs.erlang-location }}/bin:$PATH

0 comments on commit 57a00ba

Please sign in to comment.