Skip to content

Commit

Permalink
Merge pull request #108 from yetanalytics/update-runtimer
Browse files Browse the repository at this point in the history
Update runtimer and other actions
  • Loading branch information
kelvinqian00 authored Jan 2, 2025
2 parents ab1d462 + dd11969 commit 7c0e01f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ on:
- '*'
tags:
- 'v*'
pull_request:
branches:
- 'main'

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get an env
uses: yetanalytics/actions/setup-env@v0.0.4
uses: yetanalytics/action-setup-env@v2

- name: Cache Deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2
Expand All @@ -49,13 +46,13 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get an env
uses: yetanalytics/actions/setup-env@v0.0.4
uses: yetanalytics/action-setup-env@v2

- name: Cache Deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ on:
push:
branches:
- '*'

jobs:
deps:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup CI Environment
uses: yetanalytics/action-setup-env@v1
uses: yetanalytics/action-setup-env@v2

- name: Cache Deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: List Java modules
id: echo-modules
Expand All @@ -22,7 +22,7 @@ jobs:

build_jre:
needs: get_modules
uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@0.1.3-java-11-temurin
uses: yetanalytics/workflow-runtimer/.github/workflows/runtimer.yml@v2
with:
java-version: '11'
java-distribution: 'temurin'
Expand All @@ -33,45 +33,46 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get an env
uses: yetanalytics/actions/setup-env@v0.0.4
uses: yetanalytics/action-setup-env@v2

- name: Cache Deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2
~/.gitlibs
key: ${{ runner.os }}-deps-${{ hashFiles('deps.edn') }}
restore-keys: |
${{ runner.os }}-deps-
- name: Build Xapipe
run: make bundle BUNDLE_RUNTIMES=false

- name: Download ubuntu-latest Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ubuntu-20.04-jre
name: ubuntu-22.04-jre

- name: Download macOS-latest Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: macos-12-jre
name: macos-14-jre

- name: Download windows-latest Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: windows-2022-jre

- name: Unzip the runtimes
run: |
mkdir -p target/bundle/runtimes
unzip ubuntu-20.04-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/ubuntu-20.04 target/bundle/runtimes/linux
unzip macos-12-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/macos-12 target/bundle/runtimes/macos
unzip ubuntu-22.04-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/ubuntu-22.04 target/bundle/runtimes/linux
unzip macos-14-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/macos-14 target/bundle/runtimes/macos
unzip windows-2022-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/windows-2022 target/bundle/runtimes/windows
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ failures/
/logs/
.DS_Store
/dev-resources/bench/*.json
.clj-kondo/
.lsp/

0 comments on commit 7c0e01f

Please sign in to comment.