Skip to content

Commit 40d1c59

Browse files
committed
wip
1 parent 5e1e46d commit 40d1c59

File tree

1 file changed

+42
-43
lines changed

1 file changed

+42
-43
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -111,46 +111,45 @@ jobs:
111111
DEBIAN_FRONTEND=noninteractive apt-get install -y rebar3 gcc libssl-dev
112112
run: rebar3 as test do get-deps, compile, ct
113113

114-
# Windows:
115-
# name: OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} / OS ${{matrix.os}}
116-
# strategy:
117-
# fail-fast: false
118-
# matrix:
119-
# os: ['windows-2022']
120-
# otp: ['27']
121-
# rebar3: ['3.24.0']
122-
# runs-on: ${{matrix.os}}
123-
# steps:
124-
# - uses: actions/checkout@v4
125-
# - uses: erlef/setup-beam@v1
126-
# with:
127-
# otp-version: ${{matrix.otp}}
128-
# rebar3-version: ${{matrix.rebar3}}
129-
# - name: Windows - Enable Developer Command Prompt
130-
# uses: ilammy/msvc-dev-cmd@v1
131-
# if: ${{ matrix.os == 'windows-2022' }}
132-
# - name: Windows - Install openssl
133-
# shell: pwsh
134-
# run: |
135-
# choco install openssl
136-
# echo "OPENSSL_INSTALL_DIR=""C:\Program Files\OpenSSL""" >> $env:GITHUB_ENV
137-
# if: ${{ matrix.os == 'windows-2022' }}
138-
# # caches
139-
# - name: Restore _build
140-
# uses: actions/cache@v4
141-
# with:
142-
# path: _build
143-
# key: _build-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}}
144-
# - name: Restore rebar3's cache
145-
# uses: actions/cache@v4
146-
# with:
147-
# path: ~/.cache/rebar3
148-
# key: rebar3-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}}
149-
# # tests
150-
# - run: dir "C:\Program Files\OpenSSL\"
151-
# - run: rebar3 as test get-deps
152-
# - run: >
153-
# set CFLAGS="/I${OPENSSL_INSTALL_DIR}/include" &
154-
# set LDFLAGS="/LIBPATH:${OPENSSL_INSTALL_DIR}/lib" &
155-
# rebar3 as test compile
156-
# - run: rebar3 as test ct
114+
Windows:
115+
name: OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} / OS ${{matrix.os}}
116+
strategy:
117+
fail-fast: false
118+
matrix:
119+
os: ['windows-2022']
120+
otp: ['27']
121+
rebar3: ['3.24.0']
122+
runs-on: ${{matrix.os}}
123+
steps:
124+
- uses: actions/checkout@v4
125+
- uses: erlef/setup-beam@v1
126+
with:
127+
otp-version: ${{matrix.otp}}
128+
rebar3-version: ${{matrix.rebar3}}
129+
- name: Windows - Enable Developer Command Prompt
130+
uses: ilammy/msvc-dev-cmd@v1
131+
if: ${{ matrix.os == 'windows-2022' }}
132+
- name: Windows - Install openssl
133+
shell: pwsh
134+
run: |
135+
choco install openssl
136+
echo "OPENSSL_INSTALL_DIR=""C:\Program Files\OpenSSL""" >> $env:GITHUB_ENV
137+
echo "CFLAGS=""/I$OPENSSL_INSTALL_DIR/include""" >> $env:GITHUB_ENV
138+
echo "LDFLAGS=""/I$OPENSSL_INSTALL_DIR/lib""" >> $env:GITHUB_ENV
139+
if: ${{ matrix.os == 'windows-2022' }}
140+
# caches
141+
- name: Restore _build
142+
uses: actions/cache@v4
143+
with:
144+
path: _build
145+
key: _build-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}}
146+
- name: Restore rebar3's cache
147+
uses: actions/cache@v4
148+
with:
149+
path: ~/.cache/rebar3
150+
key: rebar3-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}}
151+
# tests
152+
- run: dir "C:\Program Files\OpenSSL\"
153+
- run: rebar3 as test get-deps
154+
- run: rebar3 as test compile
155+
- run: rebar3 as test ct

0 commit comments

Comments
 (0)