Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions .github/workflows/build-all-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
linux:
name: Linux natives (${{ matrix.arch }})
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -71,18 +71,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y ${{ matrix.apt }}

- name: Build (mvn verify on native linux/amd64)
if: ${{ matrix.arch == 'amd64' }}
run: |
./mvnw -B -V \
-Darch.id=${{ matrix.arch }} \
-Dnative.cc=${{ matrix.cc }} \
"-Dnative.cflags=${{ matrix.cflags }}" \
"-Dnative.ldflags=${{ matrix.ldflags }}" \
verify

- name: Build (mvn package on cross-compiled linux arches)
if: ${{ matrix.arch != 'amd64' }}
- name: Build (mvn package)
run: |
./mvnw -B -V -DskipTests \
-Darch.id=${{ matrix.arch }} \
Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@

<mkdir dir="${project.build.outputDirectory}/net/jpountz/util/${os.id}/${arch.id}"/>
<exec executable="${native.cc}" failonerror="true">
<env key="SOURCE_DATE_EPOCH" value="0"/>
<arg value="-O3"/>
<arg value="-fPIC"/>
<arg value="-shared"/>
Expand Down Expand Up @@ -492,6 +493,7 @@

<mkdir dir="${project.build.outputDirectory}/net/jpountz/util/${os.id}/${arch.id}"/>
<exec executable="${native.cc}" failonerror="true">
<env key="SOURCE_DATE_EPOCH" value="0"/>
<arg value="-O3"/>
<arg value="-fPIC"/>
<arg value="-dynamiclib"/>
Expand Down Expand Up @@ -554,6 +556,7 @@

<mkdir dir="${project.build.outputDirectory}/net/jpountz/util/${os.id}/${arch.id}"/>
<exec executable="${native.cc}" failonerror="true">
<env key="SOURCE_DATE_EPOCH" value="0"/>
<arg value="-O3"/>
<arg value="-shared"/>
<arg line="${native.cflags}"/>
Expand Down
Loading