Skip to content

Commit fed34cd

Browse files
committed
Tweak CI workflow following ci.erlang.mk changes
1 parent aca0ad9 commit fed34cd

1 file changed

Lines changed: 6 additions & 40 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -15,56 +15,22 @@ env:
1515
CI_ERLANG_MK: 1
1616

1717
jobs:
18-
cleanup-master:
19-
name: Cleanup master build
20-
runs-on: ubuntu-latest
21-
steps:
22-
23-
- name: Cleanup master build if necessary
24-
if: ${{ github.event_name == 'schedule' }}
25-
run: |
26-
gh extension install actions/gh-actions-cache
27-
gh actions-cache delete Linux-X64-Erlang-master -R $REPO --confirm || true
28-
gh actions-cache delete macOS-X64-Erlang-master -R $REPO --confirm || true
29-
env:
30-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
REPO: ${{ github.repository }}
32-
3318
check:
34-
name: Cowlib
35-
needs: cleanup-master
19+
name: Check
3620
uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master
3721

38-
# The perfs tests are nice to run but typically not
39-
# important. So we run them after we are done with the other
40-
# test suites. At this point we know that Erlang was built
41-
# so we can just use the latest version.
42-
4322
perfs:
4423
name: Run performance tests
45-
needs: check
46-
runs-on: 'ubuntu-latest'
47-
if: ${{ !cancelled() }}
24+
runs-on: ubuntu-latest
4825
steps:
4926

5027
- name: Checkout repository
5128
uses: actions/checkout@v4
5229

53-
- name: Output latest Erlang/OTP version
54-
id: latest_version
55-
run: |
56-
{
57-
echo "latest<<EOF"
58-
make ci-list | grep -v rc | grep -v master | tail -n1
59-
echo EOF
60-
} >> "$GITHUB_OUTPUT"
61-
62-
- name: Restore CI cache
63-
uses: actions/cache/restore@v4
30+
- name: Install latest Erlang/OTP
31+
uses: erlef/setup-beam@v1
6432
with:
65-
path: |
66-
~/erlang/
67-
key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ steps.latest_version.outputs.latest }}
33+
otp-version: '> 0'
6834

6935
- name: Run perfs
70-
run: make perfs LATEST_ERLANG_OTP=1
36+
run: make perfs

0 commit comments

Comments
 (0)