diff options
author | Jean-Sébastien Pédron <[email protected]> | 2025-07-23 12:27:02 +0200 |
---|---|---|
committer | Jean-Sébastien Pédron <[email protected]> | 2025-07-25 11:22:48 +0200 |
commit | 1f07645aadf6287cff5eb4af27222a993d92fd7c (patch) | |
tree | 6200695719d68248efe6bfd8903eb85eb3f8a060 | |
parent | faa424742b4000fdcda7a3c65909993ccc6b3a52 (diff) | |
download | erlang.mk-1f07645aadf6287cff5eb4af27222a993d92fd7c.tar.gz erlang.mk-1f07645aadf6287cff5eb4af27222a993d92fd7c.tar.bz2 erlang.mk-1f07645aadf6287cff5eb4af27222a993d92fd7c.zip |
GitHub Actions: Switch to `cross-platform-actions` actions to run VMs
`vmactions` VM fails to boot quite frequently and we have no visibility
on the reason of the failure.
The only failure I got out-of-the-box with cross-platform-actions VM was
the `core-deps-rel` test case which hangs. It comes from the use of
`erl_call` to detect if the Erlang node was started correctly. A comment
in the generated release starts scripts says:
# users who depend on stdout when running rpc calls must still use nodetool
# so we have an overload option to force use of nodetool instead of erl_call
If `$USE_NODETOOL` is set, it will use `relx_nodetool` instead. Indeed,
this fixed the hang.
-rw-r--r-- | .github/workflows/ci.yaml | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 62ba45d..1b6c8f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -377,7 +377,7 @@ jobs: strategy: fail-fast: false matrix: - vm: + os: - freebsd suite: - core-app @@ -424,18 +424,17 @@ jobs: uses: actions/checkout@v4 - name: Run tests (FreeBSD) - if: matrix.vm == 'freebsd' - uses: vmactions/freebsd-vm@v1 + uses: cross-platform-actions/[email protected] timeout-minutes: 60 with: - usesh: true - copyback: false - prepare: | - pkg update - pkg upgrade -y - pkg install -y erlang elixir bash ca_root_nss gmake git libsodium perl5 7-zip + operating_system: ${{ matrix.os }} + version: '14.3' + run: | + sudo pkg update + sudo pkg upgrade -y + sudo pkg install -y erlang elixir bash ca_root_nss gmake git libsodium perl5 7-zip + git config --global safe.directory '*' erl -sname init_cookie -run erlang halt - run: | - gmake check c=${{ matrix.suite }} -j4 + gmake check c=${{ matrix.suite }} -j4 USE_NODETOOL=1 |