cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

build.yml (1663B)


      1name: Build cnping
      2
      3on:
      4  push:
      5  pull_request:
      6  workflow_dispatch:
      7
      8jobs:
      9  Build-for-Linux:
     10    runs-on: ubuntu-latest
     11      
     12    steps:
     13    - uses: actions/checkout@v4
     14      with:
     15        submodules: recursive
     16    - name: Install dependencies
     17      run: |
     18        sudo apt-get update
     19        sudo apt-get install -y \
     20           debhelper-compat \
     21           libglvnd-dev \
     22           libx11-dev \
     23           libxext-dev \
     24           libxinerama-dev \
     25           mesa-common-dev \
     26           make \
     27           build-essential \
     28           binutils-mingw-w64-i686 \
     29           gcc-mingw-w64-i686 \
     30           g++-mingw-w64-i686 \
     31           devscripts \
     32           appstream \
     33           imagemagick \
     34           desktop-file-utils
     35
     36    - name: Build
     37      run: make cnping cnping.exe
     38        
     39    - uses: actions/upload-artifact@v4
     40      with:
     41        name: cnping-exe
     42        path: "*.exe"
     43
     44    - name: Build deb
     45      run: debuild --no-sign
     46      
     47    - uses: actions/upload-artifact@v4
     48      with:
     49        name: cnping-debian
     50        path: |
     51          /home/runner/work/cnping/*.deb
     52          /home/runner/work/cnping/*.ddeb
     53          
     54    - name: Validate AppStream data
     55      run: appstreamcli validate freedesktop/com.github.cntools.cnping.metainfo.xml
     56    - name: Validate desktop file
     57      run: desktop-file-validate freedesktop/com.github.cntools.cnping.desktop
     58      
     59#  Build-RPM-for-Fedora:
     60#    runs-on: ubuntu-latest
     61#    container: dreua/ ...
     62#    steps:
     63#    - name: RPM Build
     64#      run: /cnping/cnping-build
     65#    - uses: actions/upload-artifact@v4
     66#      with:
     67#        name: cnping-fedora-rpm
     68#        path: /github/home/rpmbuild/**/*.rpm