Update Windows.yml #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: OpenHD Image Writer noble | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- "debug" | |
- "dev-release" | |
- "release" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-22.04 | |
container: | |
image: docker://ubuntu:noble | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: initialise | |
run: | | |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV | |
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
apt update | |
apt install -y git sudo | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Runs a set of commands using the runners shell | |
- name: Build | |
run: | | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install -y --no-install-recommends libgnutls28-dev build-essential devscripts debhelper cmake git libarchive-dev libcurl4-openssl-dev qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev libqt5svg5-dev qttools5-dev libssl-dev qml-module-qtquick2 qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtquick-templates2 qml-module-qtquick-window2 qml-module-qtgraphicaleffects | |
mkdir build | |
mv `ls -A | grep -v "build"` build | |
cd build | |
debuild -uc -us | |
cd .. | |
- name: Upload to Github | |
uses: 'actions/upload-artifact@v3' | |
with: | |
name: "OpenHD Image Writer" | |
path: | | |
*.deb | |
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: "noble" | |
republish: "true" # needed ONLY if version is not changing | |
file: "*.deb" |