Skip to content

Commit

Permalink
updated elixir version to 1.12 and NIF version to 2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Mar 10, 2024
1 parent d62c48b commit cd6c641
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ jobs:
matrix:
job:
- { otp_version: "26", elixir_version: "1.15" }
- { otp_version: "21", elixir_version: "1.11" }
- { otp_version: "23", elixir_version: "1.12" }

name: Linux x86_64 - OTP ${{ matrix.job.otp_version }}

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.job.otp_version }}
Expand All @@ -44,7 +46,7 @@ jobs:
matrix:
job:
- { otp_version: "26", elixir_version: "1.15" }
- { otp_version: "21", elixir_version: "1.11" }
- { otp_version: "23", elixir_version: "1.12" }

name: Windows x86_64 - OTP ${{ matrix.job.otp_version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
MIX_ENV: prod
strategy:
matrix:
otp_version: [21]
otp_version: [23]

name: Linux x86_64 - OTP ${{ matrix.otp_version }}

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
ELIXIR_VERSION: "1.16.0"
strategy:
matrix:
otp_version: ["25.3.2.8"]
otp_version: ["24.3.4.16"]

name: macOS x86_64 - OTP ${{ matrix.otp_version }}

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
MIX_ENV: prod
strategy:
matrix:
otp_version: [21]
otp_version: [23]

name: Windows x86_64 - OTP ${{ matrix.otp_version }}

Expand Down
8 changes: 3 additions & 5 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ defmodule StbImage.MixProject do

@app :stb_image
@version "0.6.6"
@minimum_nif_version "2.14"
@github_url "https://github.com/elixir-nx/stb_image"

def project do
Expand All @@ -22,11 +21,10 @@ defmodule StbImage.MixProject do
make_precompiler_filename: "stb_image_nif",
make_precompiler_nif_versions: [
versions: fn opts ->
target = opts.target
if String.contains?(target, "darwin") do
["2.15"]
if String.contains?(opts.target, "darwin") do
["2.16"]
else
["2.14"]
["2.15"]
end
end
]
Expand Down

0 comments on commit cd6c641

Please sign in to comment.