diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 47c1974..e986d49 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -24,7 +24,9 @@ jobs: - 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 @@ -32,4 +34,10 @@ jobs: 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 }}