Skip to content

Commit

Permalink
Format ci.yml (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt authored Feb 7, 2024
1 parent 3a812a9 commit 1dd6d1c
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
test:
Expand Down Expand Up @@ -50,55 +50,55 @@ jobs:
runs-on: ${{matrix.os}}

steps:
# needed for Windows testing
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/[email protected]

- name: Cache OCaml's opam
uses: actions/[email protected]
with:
path: ~/.opam
key: ${{matrix.os}}-reanalyze-v2

- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{matrix.ocaml-compiler}}

- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 14.4.0

- run: npm ci

- run: opam install dune cppo

- name: Build
run: ${{matrix.build}}

- name: Test
if: matrix.target == 'rescript'
run: ${{matrix.test}}

# Also avoids artifacts upload permission loss:
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
- name: Compress files
if: matrix.target == 'rescript'
run: |
mkdir ${{matrix.artifact-folder}}
cp _build/default/src/Reanalyze.exe reanalyze.exe
tar -cvf binary.tar reanalyze.exe
- uses: actions/upload-artifact@v2
if: matrix.target == 'rescript'
with:
name: ${{matrix.os}}
path: binary.tar
# needed for Windows testing
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/[email protected]

- name: Cache OCaml's opam
uses: actions/[email protected]
with:
path: ~/.opam
key: ${{matrix.os}}-reanalyze-v2

- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{matrix.ocaml-compiler}}

- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 14.4.0

- run: npm ci

- run: opam install dune cppo

- name: Build
run: ${{matrix.build}}

- name: Test
if: matrix.target == 'rescript'
run: ${{matrix.test}}

# Also avoids artifacts upload permission loss:
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
- name: Compress files
if: matrix.target == 'rescript'
run: |
mkdir ${{matrix.artifact-folder}}
cp _build/default/src/Reanalyze.exe reanalyze.exe
tar -cvf binary.tar reanalyze.exe
- uses: actions/upload-artifact@v2
if: matrix.target == 'rescript'
with:
name: ${{matrix.os}}
path: binary.tar

npm_pack:
needs: test
Expand All @@ -113,7 +113,7 @@ jobs:
tar xf macos-latest/binary.tar -C dist/vendor-darwin
tar xf ubuntu-latest/binary.tar -C dist/vendor-linux
tar xf windows-latest/binary.tar -C dist/vendor-win32
# Add the correct package.json / README / etc to dist
node scripts/prepare_release.js
Expand Down

0 comments on commit 1dd6d1c

Please sign in to comment.