Skip to content

Commit

Permalink
ci: clean CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Oct 31, 2023
1 parent 2aa7e38 commit b8041e7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,38 @@ on:

jobs:
build_binary:
name: ${{ matrix.job.target }} / ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
name: ${{ matrix.target }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
nif_version: ["2.16"]
job:
- { target: aarch64-apple-darwin , os: macos-12 }
- { target: aarch64-unknown-linux-gnu , os: ubuntu-22.04, use-cross: true }
- { target: x86_64-apple-darwin , os: macos-12 }
- { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }
- target: aarch64-apple-darwin
os: macos-12
- target: aarch64-unknown-linux-gnu
os: ubuntu-22.04
use-cross: true
- target: x86_64-apple-darwin
os: macos-12
- target: x86_64-unknown-linux-gnu
os: ubuntu-22.04
env:
VERSION: "0.1.2"

steps:
- uses: actions/checkout@v4
- run: rustup target add ${{ matrix.job.target }}
- run: rustup target add ${{ matrix.target }}

- uses: philss/rustler-precompiled-action@main
id: precompile
with:
project-dir: "native/candlex"
project-name: candlex
project-version: ${{ env.VERSION }}
target: ${{ matrix.job.target }}
use-cross: ${{ matrix.job.use-cross }}
nif-version: ${{ matrix.nif_version }}
target: ${{ matrix.target }}
use-cross: ${{ matrix.use-cross }}
nif-version: "2.16"

- uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit b8041e7

Please sign in to comment.