Feat/demo script #77
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| workflow_call: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-erlang: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| ERL_FLAGS: "-enable-feature all" | |
| OTP_VERSION: "27" | |
| REBAR3_VERSION: "3.24.0" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Erlang/OTP and rebar3 | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: ${{ env.OTP_VERSION }} | |
| rebar3-version: ${{ env.REBAR3_VERSION }} | |
| - name: Restore _build folder | |
| uses: actions/cache@v4 | |
| with: | |
| path: _build | |
| key: "_build-cache-for\ | |
| -otp-${{ env.OTP_VERSION }}\ | |
| -rebar3-${{ env.REBAR3_VERSION }}\ | |
| -hash-${{ hashFiles('rebar.lock') }}" | |
| - name: Restore rebar3's cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/rebar3 | |
| key: "rebar3-cache-for\ | |
| -otp-${{ env.OTP_VERSION }}\ | |
| -rebar3-${{ env.REBAR3_VERSION }}\ | |
| -hash-${{ hashFiles('rebar.lock') }}" | |
| - name: Lint Erlang code (elvis) | |
| run: | | |
| rebar3 compile |