Skip to content

CI: test5

CI: test5 #14

Workflow file for this run

name: Release
on:
push:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set metadata
run: |
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
shell: bash
- name: Install dependencies
run: |
rm -f /usr/local/bin/cmake
sudo apt update && sudo apt-get install -y make cmake rpm
- name: Setup Node and npm
uses: actions/setup-node@v4
with:
node-version: lts/*
# Hack to ensure correct path of CMake generated inside src.rpm's SPEC
# file
# The issue is this change:
# https://gitlab.kitware.com/cmake/cmake/-/commit/611ad194991950ed32189d7314bdbb6cb7cc673b
# As the source RPM is built on Ubuntu and moved to some Fedora system,
# incorrect `CMAKE_COMMAND` propagates there and RPM build consequently
# fails.
- name: Relocate cmake
run: |
echo "$(which cmake)"