Skip to content

Commit

Permalink
build(elixir): pin mix deps using == and use ubuntu-22.04 for CI (#55)
Browse files Browse the repository at this point in the history
* build(elixir): pin deps using ==

* build(elixir): upgrade os to ubuntu-22.04 with cross-version to 0.2.5
  • Loading branch information
akramhussein authored Apr 3, 2024
1 parent 2bb2339 commit 7a20361
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release-elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions elixir/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7a20361

Please sign in to comment.