Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #1046

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #1046

Workflow file for this run

name: PPX
on:
pull_request:
push:
branches:
- master
jobs:
ppx_linux:
strategy:
matrix:
platform: [ubuntu-latest]
name: PPX
runs-on: ${{ matrix.platform }}
defaults:
run:
working-directory: packages/rescript-relay/rescript-relay-ppx
container:
image: alexfedoseev/alpine-node-yarn-esy:0.0.9
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
env:
CI: true
- name: Esy install
run: esy install
- name: Print esy cache
id: print_esy_cache
run: node $GITHUB_WORKSPACE/.github/workflows/print_esy_cache.js
- name: Try to restore dependencies cache
uses: actions/cache@v2
id: deps-cache
with:
path: ${{ steps.print_esy_cache.outputs.esy_cache }}
key: ${{ matrix.platform }}---v1${{ hashFiles('**/index.json') }}
restore-keys: |
${{ matrix.platform }}---v1
- name: Build PPX
run: esy linux-release-static
- name: Copy built PPX file
run: |
cp _build/default/bin/RescriptRelayPpxApp.exe ppx-linux
- name: Strip binary
run: |
strip ppx-linux
- name: Upload PPX artifact
uses: actions/upload-artifact@v2
with:
name: ppx-${{ matrix.platform }}
path: packages/rescript-relay/rescript-relay-ppx/ppx-*
if-no-files-found: error
ppx:
strategy:
matrix:
platform: [macos-latest, windows-latest]
name: PPX
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
env:
CI: true
- name: Install esy
run: npm install -g esy
- name: Build PPX
uses: esy/github-action@6863524ed7748e7882e317e31ac2b8b107011744
with:
cache-key: ${{ matrix.platform }}-${{ hashFiles('esy.lock/index.json') }}-v3
working-directory: packages/rescript-relay/rescript-relay-ppx
- name: Strip PPX binary
if: runner.os != 'Windows'
working-directory: packages/rescript-relay/rescript-relay-ppx
run: |
strip _build/default/bin/RescriptRelayPpxApp.exe
- name: Upload PPX artifact ${{ matrix.platform }}
uses: actions/upload-artifact@v2
with:
name: ppx-${{ matrix.platform }}
path: packages/rescript-relay/rescript-relay-ppx/_build/default/bin/RescriptRelayPpxApp.exe
if-no-files-found: error