Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 19, 2024
1 parent c4f1f39 commit 667b47c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-latest
uploaded_filename: sbtn-x86_64-pc-linux
local_path: client/target/bin/sbtn
- os: windows-2019
- os: windows-latest
uploaded_filename: sbtn-x86_64-pc-win32.exe
local_path: client\target\bin\sbtn.exe
env:
Expand All @@ -33,14 +33,18 @@ jobs:
with:
distribution: temurin
java-version: 8
# cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- run: git fetch --tags || true
- name: Setup Windows C++ toolchain
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os == 'windows-2019' }}
if: ${{ matrix.os == 'windows-latest' }}
- name: Build
shell: bash
run: |
echo $(pwd)
mkdir -p client/target/bin/
sbt clean nativeImage
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -83,16 +87,15 @@ jobs:
with:
distribution: temurin
java-version: 17

# cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- run: git fetch --tags || true

- name: Build
shell: bash
run: |
mkdir -p "$HOME/bin/"
curl -sL https://raw.githubusercontent.com/sbt/sbt/v1.9.9/sbt > "$HOME/bin/sbt"
export PATH="$PATH:$HOME/bin"
chmod +x "$HOME/bin/sbt"
mkdir -p client/target/bin/
sbt clean nativeImage
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -159,6 +162,9 @@ jobs:
with:
distribution: temurin
java-version: 8
# cache: sbt
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Build Linux aarch64
uses: uraimo/run-on-arch-action@v2
with:
Expand All @@ -175,11 +181,8 @@ jobs:
install: |
apt-get update -q -y
apt-get install -q -y curl openjdk-8-jdk build-essential libz-dev
mkdir -p "$HOME/bin/"
curl -sL https://raw.githubusercontent.com/sbt/sbt/v1.9.9/sbt > "$HOME/bin/sbt"
chmod +x "$HOME/bin/sbt"
run: |
export PATH="$PATH:$HOME/bin"
mkdir -p client/target/bin/
sbt clean nativeImage
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 667b47c

Please sign in to comment.