Skip to content

Commit

Permalink
WIP: Fix build-binaries workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
totakke committed Feb 15, 2025
1 parent e8abc4a commit 615eb5f
Showing 1 changed file with 49 additions and 28 deletions.
77 changes: 49 additions & 28 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,59 @@
name: build binaries

on: workflow_dispatch
# on: workflow_dispatch
on: push

jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os:
- macos-13 # amd64 (x86_64)
- macos-14 # aarch64 (arm64)
- ubuntu-24.04 # amd64 (x86_64)
- ubuntu-24.04-arm # aarch64 (arm64)
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm-community'
version: '22.3.0'

- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@13.1
with:
cli: '1.12.0.1501'

- name: Test
run: clojure -X:test

- name: Build
run: clojure -T:build native-image

- name: Upload
uses: actions/upload-artifact@v4
with:
name: bosslint-${{ matrix.os }}
path: bosslint*
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm-community'
version: '22.3.0'

- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@13.1
with:
cli: '1.12.0.1501'

- name: Test
run: clojure -X:test

- name: Build
run: clojure -T:build native-image

- name: Get version
id: get-version
run: echo "version=$(bosslint --version)" >> "$GITHUB_OUTPUT"

- name: Upload
uses: actions/upload-artifact@v4
with:
name: bosslint-${{ steps.get-version.outputs.version }}-${{ matrix.os }}
path: bosslint*

# - name: Tag
# run: |
# git tag -m "Release v${{ steps.get-version.outputs.version }}" \
# v${{ steps.get-version.outputs.version }}
# git push origin v${{ steps.get-version.outputs.version }}

- name: test
run: |
echo v${{ steps.get-version.outputs.version }}

0 comments on commit 615eb5f

Please sign in to comment.