From e87e1aa7fa11c4fc16d9541953a58c414712ab37 Mon Sep 17 00:00:00 2001 From: Anantha Kumaran Date: Sat, 14 Jun 2025 10:29:38 +0530 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 45 ++++++++++------------------------------ CHANGELOG.md | 1 + mix.exs | 8 +------ shell.nix | 3 +-- 4 files changed, 14 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dabc05..b6684f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,29 +3,24 @@ on: - pull_request jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} strategy: fail-fast: false matrix: include: - - elixir: 1.6 - otp: 20.3 - - elixir: 1.8.2 - otp: 21.3 - - elixir: 1.9.4 - otp: 22.2 - - elixir: 1.10.4 - otp: 23.0 - - elixir: 1.13.0 - otp: 24.1 - - elixir: 1.14.0 - otp: 25.0 - - elixir: 1.16.0 - otp: 26.0 + - elixir: 1.12 + otp: 24 + - elixir: 1.14 + otp: 25 + - elixir: 1.15 + otp: 25 + - elixir: 1.17 + otp: 27 + - elixir: 1.18 + otp: 27 check_warnings: true check_format: true - dialyzer: true steps: - uses: actions/checkout@v2 - uses: erlef/setup-elixir@v1 @@ -42,21 +37,3 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} - - name: Restore PLT cache - uses: actions/cache@v4 - if: ${{ matrix.dialyzer }} - id: plt_cache - with: - key: | - ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plt - restore-keys: | - ${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-plt - path: | - priv/plts - # Create PLTs if no cache was found - - name: Create PLTs - if: ${{ matrix.dialyzer && steps.plt_cache.outputs.cache-hit != 'true' }} - run: mix dialyzer --plt - - name: Run dialyzer - if: ${{ matrix.dialyzer }} - run: mix dialyzer diff --git a/CHANGELOG.md b/CHANGELOG.md index 7915726..742ec08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Types of changes: ## [Unreleased] - yyyy-mm-dd +- Drop support for Elixir < 1.12 ## [0.6.6] - 2025-03-29 diff --git a/mix.exs b/mix.exs index 58d3a1e..3333164 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule Zstream.Mixfile do [ app: :zstream, version: @version, - elixir: "~> 1.6", + elixir: "~> 1.12", start_permanent: Mix.env() == :prod, description: "Streaming zip file writer and reader", package: package(), @@ -17,11 +17,6 @@ defmodule Zstream.Mixfile do preferred_cli_env: [ "coveralls.json": :test ], - dialyzer: [ - plt_add_deps: :apps_direct, - flags: [:unmatched_returns, :error_handling, :underspecs], - plt_file: {:no_warn, "priv/plts/dialyzer.plt"} - ], deps: deps() ] end @@ -36,7 +31,6 @@ defmodule Zstream.Mixfile do [ {:temp, "~> 0.4", only: :test, runtime: false}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, - {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.18", only: :test} ] end diff --git a/shell.nix b/shell.nix index 6ebb1e7..aad32e8 100644 --- a/shell.nix +++ b/shell.nix @@ -1,5 +1,4 @@ { pkgs ? import { } }: pkgs.mkShell { - nativeBuildInputs = - [ pkgs.beam.packages.erlang_26.elixir_1_16 ]; + nativeBuildInputs = [ pkgs.beam.packages.erlang_27.elixir_1_18 ]; }