Skip to content

Commit cfc6c04

Browse files
authored
Merge pull request #26 from acalejos/25-release-precompiled-binary-for-nif-version-117-for-x86-linux
Draft: update GH actions
2 parents b2c6cad + e203de0 commit cfc6c04

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.github/workflows/precompile.yml

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
name: precompile
22

3-
on:
4-
push:
5-
tags:
6-
- 'v*'
3+
on: push
74

85
jobs:
96
linux:
7+
name: Linux Erlang/OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
108
runs-on: ubuntu-20.04
119
env:
1210
MIX_ENV: "prod"
11+
strategy:
12+
matrix:
13+
# Elixir 1.14.5 is first version compatible with OTP 26
14+
# NIF versionsss change according to
15+
# https://github.com/erlang/otp/blob/dd57c853a324a9572a9e5ce227d8675ff004c6fe/erts/emulator/beam/erl_nif.h#L33
16+
otp: ["25.0", "26.0"]
17+
elixir: ["1.14.5"]
1318
steps:
1419
- uses: actions/checkout@v3
1520
- uses: erlef/setup-beam@v1
1621
with:
17-
otp-version: "25.2.1"
18-
elixir-version: "1.14"
22+
otp-version: ${{matrix.otp}}
23+
elixir-version: ${{matrix.elixir}}
1924
- name: Install system dependecies
2025
run: |
2126
sudo apt-get update
@@ -39,13 +44,26 @@ jobs:
3944
4045
macos:
4146
runs-on: macos-latest
47+
# Homebrew supports versioned Erlang/OTP but not Elixir
48+
# It's a deliberate design decision from Homebrew to
49+
# only support versioned distrinutions for certin packages
50+
name: Mac (Intel) Erlang/OTP ${{matrix.otp}} / Elixir
4251
env:
4352
MIX_ENV: "prod"
53+
strategy:
54+
matrix:
55+
otp: ["25.0", "26.0"]
56+
elixir: ["1.14.5"]
4457
steps:
4558
- uses: actions/checkout@v3
46-
- name: Install erlang and elixir
59+
- uses: asdf-vm/actions/install@v2
60+
with:
61+
tool_versions: |
62+
erlang ${{matrix.otp}}
63+
elixir ${{matrix.elixir}}
64+
- name: Install libomp
4765
run: |
48-
brew install erlang elixir libomp
66+
brew install libomp
4967
mix local.hex --force
5068
mix local.rebar --force
5169
- name: Mix Test

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
defmodule EXGBoost.MixProject do
22
use Mix.Project
3-
@version "0.3.1"
3+
@version "0.3.2"
44

55
def project do
66
[

0 commit comments

Comments
 (0)