|
15 | 15 | CI_ERLANG_MK: 1 |
16 | 16 |
|
17 | 17 | 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 | | - |
33 | 18 | check: |
34 | | - name: Cowlib |
35 | | - needs: cleanup-master |
| 19 | + name: Check |
36 | 20 | uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master |
37 | 21 |
|
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 | | - |
43 | 22 | perfs: |
44 | 23 | name: Run performance tests |
45 | | - needs: check |
46 | | - runs-on: 'ubuntu-latest' |
47 | | - if: ${{ !cancelled() }} |
| 24 | + runs-on: ubuntu-latest |
48 | 25 | steps: |
49 | 26 |
|
50 | 27 | - name: Checkout repository |
51 | 28 | uses: actions/checkout@v4 |
52 | 29 |
|
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 |
64 | 32 | with: |
65 | | - path: | |
66 | | - ~/erlang/ |
67 | | - key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ steps.latest_version.outputs.latest }} |
| 33 | + otp-version: '> 0' |
68 | 34 |
|
69 | 35 | - name: Run perfs |
70 | | - run: make perfs LATEST_ERLANG_OTP=1 |
| 36 | + run: make perfs |
0 commit comments