Skip to content

Commit

Permalink
Add release workflow for Arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
YaSuenag committed Feb 8, 2024
1 parent 637ff0f commit 7c02dce
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
publish:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-14

runs-on: ${{ matrix.os }}

Expand All @@ -32,13 +36,20 @@ jobs:
- name: 'Run Maven'
run: |
mvn -B -DskipTests package
ASSET=$(find target/ -name 'cfa*.zip')
echo "ASSET=$ASSET" >> $GITHUB_ENV
shell: bash
- if: matrix.os == 'ubuntu-latest'
name: Set up QEMU
uses: docker/setup-qemu-action@v3

- if: matrix.os == 'ubuntu-latest'
name: Build for Linux AArch64
run: |
rm -fR target/perfreader-*/
docker run -i --rm -v .:/workspace:Z arm64v8/maven:3.9-eclipse-temurin-21 bash -c 'cd /workspace && mvn -B -DskipTests package'
- name: 'Upload Release Asset'
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v3.0
with:
release-tag: ${{ github.ref_name }}
files: ${{ env.ASSET }}
files: "target/cfa-*.zip"
repo-token: ${{ github.token }}

0 comments on commit 7c02dce

Please sign in to comment.