mirror of
https://github.com/wownero/wownero.git
synced 2026-10-26 10:58:34 +01:00
workflows: use matrix for linux
This commit is contained in:
@@ -136,56 +136,16 @@ jobs:
|
|||||||
path: ~/.cache/ccache
|
path: ~/.cache/ccache
|
||||||
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
|
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
|
||||||
|
|
||||||
build-debian:
|
build-linux:
|
||||||
# Oldest supported Debian version
|
|
||||||
name: 'Debian 11'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: debian:11
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: noninteractive
|
|
||||||
steps:
|
|
||||||
- name: set apt conf
|
|
||||||
run: ${{env.APT_SET_CONF}}
|
|
||||||
- name: update apt
|
|
||||||
run: apt update
|
|
||||||
- name: install monero dependencies
|
|
||||||
run: ${{env.APT_INSTALL_LINUX}}
|
|
||||||
- name: install rust
|
|
||||||
run: ${{env.INSTALL_RUST}}
|
|
||||||
- name: configure git
|
|
||||||
run: git config --global --add safe.directory '*'
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- name: restore ccache
|
|
||||||
uses: actions/cache/restore@v5
|
|
||||||
id: ccache-restore
|
|
||||||
with:
|
|
||||||
path: ~/.cache/ccache
|
|
||||||
key: ccache-debian-11-build-${{ github.sha }}
|
|
||||||
restore-keys: ccache-debian-11-build-
|
|
||||||
- uses: ./.github/actions/set-make-job-count
|
|
||||||
- name: build
|
|
||||||
env:
|
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL: ${{env.MAKE_JOB_COUNT}}
|
|
||||||
run: |
|
|
||||||
${{ env.CCACHE_SETTINGS }}
|
|
||||||
${{ env.BUILD_DEFAULT }}
|
|
||||||
- name: save ccache
|
|
||||||
uses: actions/cache/save@v5
|
|
||||||
if: github.event_name != 'pull_request' && steps.ccache-restore.outputs.cache-hit != 'true'
|
|
||||||
with:
|
|
||||||
path: ~/.cache/ccache
|
|
||||||
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
|
|
||||||
|
|
||||||
build-ubuntu:
|
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
# Oldest supported Debian version
|
||||||
|
- name: Debian 11
|
||||||
|
container: debian:11
|
||||||
# Oldest supported Ubuntu LTS version
|
# Oldest supported Ubuntu LTS version
|
||||||
- name: Ubuntu 22.04
|
- name: Ubuntu 22.04
|
||||||
container: ubuntu:22.04
|
container: ubuntu:22.04
|
||||||
|
|||||||
Reference in New Issue
Block a user