release-artifacts #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: apple-release-artifacts | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
MIX_ENV: prod | ||
NX_IREE_PREFER_PRECOMPILED: "false" | ||
BUILD_CACHE: ${{ github.workspace }}/build_cache | ||
jobs: | ||
download_iree: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Erlang and Elixir | ||
uses: erlef/setup-beam@v1 | ||
- name: Cache mix packages | ||
id: cache-mix-deps | ||
uses: actions/cache@v4 | ||
with: | ||
key: deps-${{ hashFiles('mix.lock') }} | ||
path: | | ||
./deps | ||
- name: Get mix deps | ||
if: steps.cache-mix-deps.outputs.cache-hit != 'true' | ||
run: | | ||
mix deps.get | ||
- name: Cache IREE source code | ||
id: cache-iree | ||
uses: actions/cache@v4 | ||
with: | ||
key: iree-${{ mix iree.version }} | ||
Check failure on line 45 in .github/workflows/ci.yml GitHub Actions / apple-release-artifactsInvalid workflow file
|
||
path: | | ||
${{ env.BUILD_CACHE }}/iree | ||
- name: Download IREE source code | ||
if: steps.cache-iree.outputs.cache-hit != 'true' | ||
run: | | ||
bash scripts/clone_iree.sh ${{ env.BUILD_CACHE }} ${{ mix iree.version }} '${{ env.BUILD_CACHE }}/iree' | ||
build_artifacts: | ||
runs-on: macos-14 | ||
needs: download_iree | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Erlang and Elixir | ||
uses: erlef/setup-beam@v1 | ||
- name: Cache mix packages | ||
id: cache-mix-deps | ||
uses: actions/cache/restore@v4 | ||
with: | ||
key: deps-${{ hashFiles('mix.lock') }} | ||
path: | | ||
./deps | ||
- name: Cache IREE source code | ||
id: cache-iree | ||
uses: actions/cache/restore@v4 | ||
with: | ||
key: iree-${{ mix iree.version }} | ||
path: | | ||
${{ env.BUILD_CACHE }}/iree | ||
- name: Build IREE | ||
run: | | ||
IREE_DIR=${{ env.BUILD_CACHE }}/iree make compile | ||
- name: Build artifacts | ||
run: | | ||
mix compile | ||
mix release |