Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

set /LARGEADDRESSAWARE #51

set /LARGEADDRESSAWARE

set /LARGEADDRESSAWARE #51

Workflow file for this run

on:
push:
pull_request:
jobs:
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: build
shell: cmd
run: |
cd src/main/native/packr
cmake -G "Visual Studio 17 2022" -B build .
cmake --build build --config Release
cmake -A Win32 -G "Visual Studio 17 2022" -B build32 .
cmake --build build32 --config Release
cmake -A ARM64 -G "Visual Studio 17 2022" -B build-arm64 .
cmake --build build-arm64 --config Release
- uses: actions/upload-artifact@v3
with:
name: windows
path: |
src\main\native\packr\build\src\Release\packr.exe
src\main\native\packr\build32\src\Release\packr.exe
src\main\native\packr\build-arm64\src\Release\packr.exe
if-no-files-found: error
macos:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: build
run: |
set -e -x
cd src/main/native/packr
cmake -B build .
cmake --build build --config Release
cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -B build-arm64 .
cmake --build build-arm64 --config Release
- uses: actions/upload-artifact@v3
with:
name: macos
path: |
src/main/native/packr/build/src/packr
src/main/native/packr/build-arm64/src/packr
if-no-files-found: error
linux:
needs: [macos, windows]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/download-artifact@v3
with:
path: artifacts
- run: sudo apt update
- run: sudo apt install -y gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu
- name: build natives
run: |
set -e -x
cd src/main/native/packr
cmake -B build .
cmake --build build --config Release
cmake -DCMAKE_TOOLCHAIN_FILE=arm64-linux-gcc.cmake -B build-arm64 .
cmake --build build-arm64 --config Release
- name: build jar
run: |
set -e
cp artifacts/windows/build/src/Release/packr.exe src/main/resources/packr-windows-x64.exe
cp artifacts/windows/build32/src/Release/packr.exe src/main/resources/packr-windows.exe
cp artifacts/windows/build-arm64/src/Release/packr.exe src/main/resources/packr-windows-arm64.exe
cp artifacts/macos/build/src/packr src/main/resources/packr-mac-x64
cp artifacts/macos/build-arm64/src/packr src/main/resources/packr-mac-arm64
cp src/main/native/packr/build/src/packr src/main/resources/packr-linux-x64
cp src/main/native/packr/build-arm64/src/packr src/main/resources/packr-linux-aarch64
mvn clean package
- uses: actions/upload-artifact@v3
with:
name: linux
path: |
src/main/native/packr/build/src/packr
src/main/native/packr/build-arm64/src/packr
if-no-files-found: error
- uses: actions/upload-artifact@v3
with:
name: jar
path: target/packr-jar-with-dependencies.jar
if-no-files-found: error