-
Notifications
You must be signed in to change notification settings - Fork 64
52 lines (44 loc) · 1.11 KB
/
windows-precompile.yml
File metadata and controls
52 lines (44 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: windows-precompile
on:
push:
branches:
- "main"
tags:
- 'v*'
permissions:
contents: write
jobs:
precompile:
runs-on: windows-2022
env:
MIX_ENV: prod
strategy:
matrix:
arch:
- x64
job:
- {otp: "27", elixir: "1.17"}
- {otp: "25", elixir: "1.14"}
name: Windows ${{ matrix.arch }} - OTP ${{ matrix.job.otp }} - Elixir ${{ matrix.job.elixir }}
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.job.otp }}
elixir-version: ${{ matrix.job.elixir }}
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Pre-compile NIF library
shell: bash
run: |
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
mix deps.get
mix elixir_make.precompile
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cache/*.tar.gz