diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yaml | 25 | ||||
-rw-r--r-- | .github/workflows/unix-ci.yaml | 32 |
2 files changed, 31 insertions, 26 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ec841e6..4421ba8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,10 +20,10 @@ jobs: steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Checkout ci.erlang.mk repository - uses: actions/[email protected] + uses: actions/checkout@v4 with: repository: ninenines/ci.erlang.mk path: deps/ci.erlang.mk @@ -42,7 +42,7 @@ jobs: run: | { echo "latest<<EOF" - make ci-list AUTO_CI_MASTER=daily | grep -v rc | grep -v master | tail -n1 + make ci-list | grep -v rc | grep -v master | tail -n1 echo EOF } >> "$GITHUB_OUTPUT" @@ -68,16 +68,16 @@ jobs: steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Checkout ci.erlang.mk repository - uses: actions/[email protected] + uses: actions/checkout@v4 with: repository: ninenines/ci.erlang.mk path: deps/ci.erlang.mk - name: Setup MSYS2 - uses: msys2/[email protected] + uses: msys2/setup-msys2@v2 with: msystem: mingw64 update: true @@ -104,19 +104,22 @@ jobs: matrix: erlang: ${{ fromJson(needs.prepare-windows.outputs.erlang) }} runs-on: windows-latest + env: + COWBOY_QUICER: 0 + GUN_QUICER: 0 steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Install Erlang/OTP - uses: erlef/[email protected] + uses: erlef/setup-beam@v1 with: otp-version: '${{ matrix.erlang }}' version-type: loose - name: Setup MSYS2 - uses: msys2/[email protected] + uses: msys2/setup-msys2@v2 with: msystem: mingw64 update: true @@ -129,10 +132,10 @@ jobs: run: PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH make -k ci-windows-${{ matrix.erlang }} - name: Upload logs - uses: actions/[email protected] + uses: actions/upload-artifact@v4 if: always() with: name: Common Test logs (${{ matrix.erlang }} ${{ runner.os }}) path: | logs/ - !logs/**/log_private +# !logs/**/log_private diff --git a/.github/workflows/unix-ci.yaml b/.github/workflows/unix-ci.yaml index 5e2de38..77c6dfd 100644 --- a/.github/workflows/unix-ci.yaml +++ b/.github/workflows/unix-ci.yaml @@ -22,6 +22,8 @@ on: env: CI_ERLANG_MK: 1 AUTO_CI_MASTER: weekly + COWBOY_QUICER: ${{ vars.COWBOY_QUICER || 0 }} + GUN_QUICER: ${{ vars.GUN_QUICER || 0 }} jobs: @@ -31,19 +33,18 @@ jobs: steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Manage CI cache id: cache - uses: actions/[email protected] + uses: actions/cache@v4 with: path: | ~/erlang/ - ~/.kerl/ key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ inputs.erlang }} - name: Run ci-prepare - if: steps.cache.outputs.cache-hit != 'true' || inputs.erlang == 'master' + if: steps.cache.outputs.cache-hit != 'true' run: make -k ci-prepare CI_OTP=${{ inputs.erlang }} test: @@ -53,31 +54,33 @@ jobs: steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Restore CI cache - uses: actions/cache/[email protected] + uses: actions/cache/restore@v4 with: path: | ~/erlang/ - ~/.kerl/ key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ inputs.erlang }} - - name: Install required software + - name: Run tests (macOS) if: runner.os == 'macOS' - run: brew install coreutils + run: > + brew install coreutils make && + gmake -k ci-${{ inputs.erlang }} - - name: Run tests + - name: Run tests (Unix) + if: runner.os != 'macOS' run: make -k ci-${{ inputs.erlang }} - name: Upload logs - uses: actions/[email protected] + uses: actions/upload-artifact@v4 if: always() with: name: Common Test logs (${{ inputs.erlang }} ${{ runner.os }}) path: | logs/ - !logs/**/log_private +# !logs/**/log_private dialyze: name: Run Dialyzer using ${{ inputs.erlang }} @@ -88,14 +91,13 @@ jobs: steps: - name: Checkout repository - uses: actions/[email protected] + uses: actions/checkout@v4 - name: Restore CI cache - uses: actions/cache/[email protected] + uses: actions/cache/restore@v4 with: path: | ~/erlang/ - ~/.kerl/ key: ${{ runner.os }}-${{ runner.arch }}-Erlang-${{ inputs.latest }} - name: Run Dialyzer |