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 fc1df8e
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 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,15 +33,19 @@ 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)
sbt clean nativeImage
mkdir -p client/target/bin/
sbt nativeImage
- uses: actions/upload-artifact@v4
with:
path: ${{ matrix.local_path }}
Expand Down Expand Up @@ -83,17 +87,16 @@ 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"
sbt clean nativeImage
mkdir -p client/target/bin/
sbt nativeImage
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -143,7 +146,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
uploaded_filename: sbtn-aarch64-pc-linux
local_path: client/target/bin/sbtn
env:
Expand All @@ -159,13 +162,17 @@ 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:
arch: aarch64
distro: ubuntu20.04
arch: none
distro: none
base_image: 'aarch64/ubuntu22.04'

# Speeds up builds per the run-on-arch-action README
Speeds up builds per the run-on-arch-action README
githubToken: ${{ github.token }}

# The shell to run commands with in the container
Expand All @@ -175,12 +182,9 @@ 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"
sbt clean nativeImage
mkdir -p client/target/bin/
sbt nativeImage
- uses: actions/upload-artifact@v4
with:
path: ${{ matrix.local_path }}
Expand Down

0 comments on commit fc1df8e

Please sign in to comment.