From 7a203617d67e71291398fe18bf62616e88c006da Mon Sep 17 00:00:00 2001 From: Akram Hussein <586938+akramhussein@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:08:55 -0300 Subject: [PATCH] build(elixir): pin mix deps using == and use ubuntu-22.04 for CI (#55) * build(elixir): pin deps using == * build(elixir): upgrade os to ubuntu-22.04 with cross-version to 0.2.5 --- .github/workflows/release-elixir.yml | 16 +++++++++------- elixir/mix.exs | 10 +++++----- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-elixir.yml b/.github/workflows/release-elixir.yml index f4fc361..036b7a1 100644 --- a/.github/workflows/release-elixir.yml +++ b/.github/workflows/release-elixir.yml @@ -17,14 +17,14 @@ jobs: matrix: nif: ["2.17", "2.16", "2.15"] job: - - { target: arm-unknown-linux-gnueabihf , os: ubuntu-20.04 , use-cross: true } - - { target: aarch64-unknown-linux-gnu , os: ubuntu-20.04 , use-cross: true } - - { target: aarch64-unknown-linux-musl , os: ubuntu-20.04 , use-cross: true } + - { target: arm-unknown-linux-gnueabihf , os: ubuntu-22.04 , use-cross: true } + - { target: aarch64-unknown-linux-gnu , os: ubuntu-22.04 , use-cross: true } + - { target: aarch64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true } - { target: aarch64-apple-darwin , os: macos-11 } - - { target: riscv64gc-unknown-linux-gnu , os: ubuntu-20.04 , use-cross: true } + - { target: riscv64gc-unknown-linux-gnu , os: ubuntu-22.04 , use-cross: true } - { target: x86_64-apple-darwin , os: macos-11 } - - { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04 } - - { target: x86_64-unknown-linux-musl , os: ubuntu-20.04 , use-cross: true } + - { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 } + - { target: x86_64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true } - { target: x86_64-pc-windows-gnu , os: windows-2019 } - { target: x86_64-pc-windows-msvc , os: windows-2019 } @@ -53,8 +53,10 @@ jobs: target: ${{ matrix.job.target }} nif-version: ${{ matrix.nif }} use-cross: ${{ matrix.job.use-cross }} - project-dir: "elixir/vxl_elixir" + variant: ${{ matrix.job.variant }} cargo-args: "--target-dir=target" + cross-version: "v0.2.5" + project-dir: "elixir/vxl_elixir" - name: Artifact upload uses: actions/upload-artifact@v3 diff --git a/elixir/mix.exs b/elixir/mix.exs index 8ed67b9..73c2990 100644 --- a/elixir/mix.exs +++ b/elixir/mix.exs @@ -18,11 +18,11 @@ defmodule VXLParser.MixProject do defp deps, do: [ - {:jason, "~> 1.0"}, - {:rustler_precompiled, "~> 0.7.1"}, - {:rustler, "~> 0.30"}, - {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, - {:excoveralls, "~> 0.18", only: [:test], runtime: false} + {:jason, "== 1.4.1"}, + {:rustler_precompiled, "== 0.7.1"}, + {:rustler, "== 0.30.0"}, + {:credo, "== 1.7.1", only: [:dev, :test], runtime: false}, + {:excoveralls, "== 0.18.0", only: [:test], runtime: false} ] defp package,