Skip to content

Commit

Permalink
setup project
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSLoburev committed Jan 2, 2024
1 parent 20279c3 commit 6b05480
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 45 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/_erlang._yml

This file was deleted.

23 changes: 11 additions & 12 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@ jobs:

runs-on: ubuntu-latest

container:
image: erlang:22.0.7

steps:
- uses: actions/checkout@v3
- name: Setup Erlang
uses: erlef/setup-erlang@v1
with:
otp-version: 22.0.7
- name: Install rebar3
run: |
wget https://github.com/erlang/rebar3/releases/download/3.16.1/rebar3 && chmod +x rebar3
sudo mv rebar3 /usr/local/bin/
- name: List files
run: ls -al
- name: Compile
run: rebar3 compile
#- name: Run tests
# run: rebar3 do eunit, ct
- name: List project dir
run: ls -al
- name: List .beam files
run: ls -al ./reverse_polish_notation_evaluator/_build/default/lib/reverse_polish_notation_evaluator/ebin
- name: Run reverse_polish_notation_evaluator
run: erl -noshell -pa _build/default/lib/reverse_polish_notation_evaluator/ebin -s reverse_polish_notation_evaluator start -s init stop

#run: erl -noshell -pa reverse_polish_notation_evaluator/_build/default/lib/reverse_polish_notation_evaluator/ebin -s reverse_polish_notation_evaluator start -s init stop
run: erl -noshell -eval 'code:load_file(reverse_polish_notation_evaluator), reverse_polish_notation_evaluator:start(), init:stop().'
Binary file added reverse_polish_notation_evaluator.beam
Binary file not shown.

0 comments on commit 6b05480

Please sign in to comment.