-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 969 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build artifacts
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-SNAPSHOT
jobs:
build_artifacts:
strategy:
matrix:
arch:
- linux-amd64-static.tar.gz
- linux-aarch64-static.tar.gz
- macos-aarch64.tar.gz
- macos-amd64.tar.gz
- windows-amd64.zip
- standalone.jar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with: { path: "~/.m2", key: "${{ runner.os }}-${{ hashFiles('deps.edn') }}-m2" }
- uses: actions/cache@v3
with:
key: "clojure-${{ runner.os }}-${{ hashFiles('.github/workflows/install-binaries.sh') }}"
path: |
./bin
./lib
- name: Install clj runtime
run: .github/workflows/install-binaries.sh
- name: Build artifact
run: make eduhub-validator-$(echo $GITHUB_REF | cut -d / -f 3)-${{ matrix.arch }}