Skip to content

Commit f3fafce

Browse files
committed
Fix build config again
1 parent 4e49518 commit f3fafce

File tree

3 files changed

+18
-57
lines changed

3 files changed

+18
-57
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- '**/*.md'
1111

1212
env:
13-
APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libsodium-dev libhidapi-dev libusb-1.0-0-dev gperf libreadline-dev miniupnpc libunbound-dev libzmq3-dev libnorm-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache'
13+
APT_INSTALL_LINUX: 'sudo apt-get -y install build-essential cmake libboost-all-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libsodium-dev libhidapi-dev libusb-1.0-0-dev gperf libreadline-dev miniupnpc libunbound-dev libzmq3-dev libnorm-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache'
1414
APT_SET_CONF: |
1515
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
1616
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
@@ -50,9 +50,9 @@ jobs:
5050
- name: build
5151
run: |
5252
${{env.CCACHE_SETTINGS}}
53-
make release-static-win64 -j2
53+
make release-static-win-x86_64 -j2
5454
55-
ubuntu:
55+
linux:
5656
runs-on: ${{ matrix.os }}
5757
strategy:
5858
matrix:

.github/workflows/build2.yml

Lines changed: 12 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- '**/*.md'
1111

1212
env:
13-
APT_INSTALL_LINUX: 'sudo apt -y install build-essential cmake libboost-all-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libsodium-dev libhidapi-dev libusb-1.0-0-dev gperf libreadline-dev miniupnpc libunbound-dev libzmq3-dev libnorm-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache'
13+
APT_INSTALL_LINUX: 'sudo apt-get -y install build-essential cmake libboost-all-dev graphviz doxygen libunwind8-dev pkg-config libssl-dev libsodium-dev libhidapi-dev libusb-1.0-0-dev gperf libreadline-dev miniupnpc libunbound-dev libzmq3-dev libnorm-dev libpgm-dev libprotobuf-dev protobuf-compiler ccache'
1414
APT_SET_CONF: |
1515
echo "Acquire::Retries \"3\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
1616
echo "Acquire::http::Timeout \"120\";" | sudo tee -a /etc/apt/apt.conf.d/80-custom
@@ -69,68 +69,29 @@ jobs:
6969
name: windows-release
7070
path: '/home/runner/work/morelo/morelo/build/release/bin/morelo*'
7171

72-
ubuntu20:
73-
runs-on: ubuntu-20.04
74-
steps:
75-
- uses: actions/checkout@v4
76-
with:
77-
submodules: recursive
78-
- name: remove bundled boost
79-
run: sudo rm -rf /usr/local/share/boost
80-
- name: set apt conf
81-
run: ${{env.APT_SET_CONF}}
82-
- name: update apt
83-
run: sudo apt update
84-
- name: install morelo dependencies
85-
run: ${{env.APT_INSTALL_LINUX}}
86-
- name: build
87-
run: make -j2 release-static-ubuntu20
88-
- name: upload artifacts
89-
uses: actions/upload-artifact@v4
90-
with:
91-
name: ubuntu20-release
92-
path: '/home/runner/work/morelo/morelo/build/release/bin/morelo*'
93-
94-
ubuntu22:
95-
runs-on: ubuntu-22.04
96-
steps:
97-
- uses: actions/checkout@v4
98-
with:
99-
submodules: recursive
100-
- name: remove bundled boost
101-
run: sudo rm -rf /usr/local/share/boost
102-
- name: set apt conf
103-
run: ${{env.APT_SET_CONF}}
104-
- name: update apt
105-
run: sudo apt update
106-
- name: install morelo dependencies
107-
run: ${{env.APT_INSTALL_LINUX}}
108-
- name: build
109-
run: make -j2 release-static-ubuntu22
110-
- name: upload artifacts
111-
uses: actions/upload-artifact@v4
112-
with:
113-
name: ubuntu22-release
114-
path: '/home/runner/work/morelo/morelo/build/release/bin/morelo*'
115-
116-
ubuntu24:
117-
runs-on: ubuntu-24.04
72+
linux:
73+
runs-on: ${{ matrix.os }}
74+
strategy:
75+
matrix:
76+
os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04 ]
77+
env:
78+
BUILD_NAME: ${{ matrix.os == 'ubuntu-24.04' && 'ubuntu24' || ( matrix.os == 'ubuntu-22.04' && 'ubuntu22' || 'ubuntu20' ) }}
11879
steps:
11980
- uses: actions/checkout@v4
12081
with:
12182
submodules: recursive
12283
- name: remove bundled boost
12384
run: sudo rm -rf /usr/local/share/boost
12485
- name: set apt conf
125-
run: ${{env.APT_SET_CONF}}
86+
run: ${{ env.APT_SET_CONF }}
12687
- name: update apt
12788
run: sudo apt update
12889
- name: install morelo dependencies
129-
run: ${{env.APT_INSTALL_LINUX}}
90+
run: ${{ env.APT_INSTALL_LINUX }}
13091
- name: build
131-
run: make -j2 release-static-ubuntu24
92+
run: make -j2 release-static-${{ env.BUILD_NAME }}
13293
- name: upload artifacts
13394
uses: actions/upload-artifact@v4
13495
with:
135-
name: ubuntu24-release
96+
name: ${{ env.BUILD_NAME }}-release
13697
path: '/home/runner/work/morelo/morelo/build/release/bin/morelo*'

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ release-static-linux-x86_64:
125125

126126
release-static-ubuntu20:
127127
mkdir -p $(builddir)/release
128-
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu20-x64" $(topdir) && $(MAKE)
128+
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu20-x64" $(topdir) && $(MAKE)
129129

130130
release-static-ubuntu22:
131131
mkdir -p $(builddir)/release
132-
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu22-x64" $(topdir) && $(MAKE)
132+
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu22-x64" $(topdir) && $(MAKE)
133133

134134
release-static-ubuntu24:
135135
mkdir -p $(builddir)/release
136-
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D STATIC=ON -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu24-x64" $(topdir) && $(MAKE)
136+
cd $(builddir)/release && cmake -D BUILD_TESTS=OFF -D ARCH="x86-64" -D BUILD_64=ON -D CMAKE_BUILD_TYPE=Release -D BUILD_TAG="ubuntu24-x64" $(topdir) && $(MAKE)
137137

138138
release-static-freebsd-x86_64:
139139
mkdir -p $(builddir)/release

0 commit comments

Comments
 (0)