Skip to content

artifact

artifact #8

Workflow file for this run

name: Build NIF binaries
on:
push:
branches:
- precompiled
jobs:
build_binary:
name: ${{ matrix.job.target }} / ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
nif_version: ["2.16"]
job:
- { target: x86_64-apple-darwin , os: macos-12 }
- { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }
- { target: x86_64-pc-windows-gnu , os: windows-2022 }
steps:
- uses: actions/checkout@v4
- run: rustup target add ${{ matrix.job.target }}
- run: echo "PROJECT_VERSION=$(sed -n 's/^ @version "\(.*\)"/\1/p' mix.exs | head -n1)" >> $GITHUB_ENV
- uses: philss/rustler-precompiled-action@v1.1.1
id: precompile
with:
project-dir: "native/candlex"
project-name: candlex
project-version: ${{ PROJECT_VERSION }}

Check failure on line 33 in .github/workflows/binaries.yml

View workflow run for this annotation

GitHub Actions / Build NIF binaries

Invalid workflow file

The workflow is not valid. .github/workflows/binaries.yml (Line: 33, Col: 28): Unrecognized named-value: 'PROJECT_VERSION'. Located at position 1 within expression: PROJECT_VERSION
target: ${{ matrix.job.target }}
nif-version: ${{ matrix.nif_version }}
# use-cross: false doesn't work
# I think because of https://github.com/actions/runner/issues/1173
use-cross: null
- uses: actions/upload-artifact@v3
with:
name: ${{ steps.precompile.outputs.file-name }}
path: ${{ steps.precompile.outputs.file-path }}