Skip to content

Merge pull request #676 from OpenHD/consti-dev #244

Merge pull request #676 from OpenHD/consti-dev

Merge pull request #676 from OpenHD/consti-dev #244

name: build_package_LUNAR
on:
push:
branches:
- "2.5-evo"
- "dev-release"
- "release"
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
#runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
container:
image: docker://ubuntu:lunar
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
steps:

Check failure on line 22 in .github/workflows/build_package_x86_lunar.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_package_x86_lunar.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- name: test
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
apt update
apt install -y git sudo
- name: clone QOpenHD
run: |
git clone -b ${{ github.ref_name }} https://github.com/OpenHD/QOpenHD --recursive
- name: Install Dependencies
run: |
ls
cd QOpenHD
sudo -H ./install_build_dep.sh ubuntu-x86
- name: Build with make
run: |
cd QOpenHD
./package.sh x86_64 ubuntu lunar
ls -a
- name: Upload to Github
uses: 'actions/upload-artifact@v2'
with:
name: "QOpenHD"
path: |
QOpenHD/*.deb
*.log
if-no-files-found: error
- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: ${{ github.ref_name }}
distro: "ubuntu"
release: "lunar"
republish: "true" # needed ONLY if version is not changing
file: "QOpenHD/*.deb"
if: ${{ github.ref != 'refs/heads/2.5-evo' }}