Skip to content

Commit 1cda9ac

Browse files
committed
Simplify ci-cd.yml by removing ERL_BASE resolution and unnecessary pkgx hacks
1 parent 00ce837 commit 1cda9ac

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,49 +37,23 @@ jobs:
3737
steps:
3838
- uses: actions/checkout@v6
3939
- uses: pkgxdev/dev@fix-erlang
40-
- name: Resolve ERL_BASE
41-
run: |
42-
unset ERL_ROOTDIR
43-
ERL_BIN="$(command -v erl)"
44-
ERL_BIN_REAL="$(readlink -f "$ERL_BIN")"
45-
ERL_DIR="$(dirname "$(dirname "$ERL_BIN_REAL")")"
46-
if [ -d "$ERL_DIR/lib/erlang" ]; then
47-
ERL_BASE="$ERL_DIR/lib/erlang"
48-
else
49-
ERL_BASE="$ERL_DIR"
50-
fi
51-
echo "ERL_BASE=$ERL_BASE" >> "$GITHUB_ENV"
52-
echo "ERL_ROOTDIR=$ERL_BASE" >> "$GITHUB_ENV"
53-
- run: pkgx +invisible-island.net/ncurses -- mix deps.get
54-
- run: pkgx +invisible-island.net/ncurses -- mix deps.compile
55-
- run: pkgx +invisible-island.net/ncurses -- mix test
40+
- run: mix deps.get
41+
- run: mix deps.compile
42+
- run: mix test
5643

5744
audit:
5845
needs: [ version ]
5946
runs-on: ubuntu-latest
6047
steps:
6148
- uses: actions/checkout@v6
6249
- uses: pkgxdev/dev@fix-erlang
63-
- name: Resolve ERL_BASE
64-
run: |
65-
unset ERL_ROOTDIR
66-
ERL_BIN="$(command -v erl)"
67-
ERL_BIN_REAL="$(readlink -f "$ERL_BIN")"
68-
ERL_DIR="$(dirname "$(dirname "$ERL_BIN_REAL")")"
69-
if [ -d "$ERL_DIR/lib/erlang" ]; then
70-
ERL_BASE="$ERL_DIR/lib/erlang"
71-
else
72-
ERL_BASE="$ERL_DIR"
73-
fi
74-
echo "ERL_BASE=$ERL_BASE" >> "$GITHUB_ENV"
75-
echo "ERL_ROOTDIR=$ERL_BASE" >> "$GITHUB_ENV"
76-
- run: pkgx +invisible-island.net/ncurses -- mix deps.get
77-
- run: pkgx +invisible-island.net/ncurses -- mix deps.compile
50+
- run: mix deps.get
51+
- run: mix deps.compile
7852
- uses: ./.github/actions/dialyzer-cache
7953
with:
8054
otp-version: ${{ needs.version.outputs.otp-version }}
8155
elixir-version: ${{ needs.version.outputs.elixir-version }}
82-
- run: pkgx +invisible-island.net/ncurses -- bin/audit --skip-check-image
56+
- run: bin/audit --skip-check-image
8357

8458
build:
8559
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)