|
31 | 31 |
|
32 | 32 | jobs: |
33 | 33 |
|
34 | | -# ---------------------------- |
35 | | -# --- Linux (Ubuntu) steps --- |
36 | | -# ---------------------------- |
| 34 | +# ---------------------------------- |
| 35 | +# --- Linux (Ubuntu) amd64 steps --- |
| 36 | +# ---------------------------------- |
37 | 37 | # |
38 | 38 | linux-x86_64: |
39 | 39 | runs-on: ubuntu-24.04 |
|
64 | 64 | mkdir build |
65 | 65 | sudo apt update |
66 | 66 | # sudo apt -y upgrade |
67 | | - sudo apt install g++ make cmake fakeroot rpm qt6-tools-dev libfftw3-dev binutils-dev \ |
68 | | - libusb-1.0-0-dev libqt6opengl6 mesa-common-dev libgl1-mesa-dev libgles2-mesa-dev qt6-base-dev |
| 67 | + sudo apt install g++ make cmake fakeroot rpm \ |
| 68 | + libfftw3-dev binutils-dev libusb-1.0-0-dev libcups2-dev libxkbcommon-dev \ |
| 69 | + libqt6core6t64 libqt6gui6 libqt6widgets6 libqt6printsupport6 \ |
| 70 | + libqt6opengl6 libqt6openglwidgets6 qt6-tools-dev |
69 | 71 |
|
70 | 72 | - name: Ubuntu Build |
71 | 73 | # GitHub hosts Linux runners on Standard_DS2_v2 virtual machines in Microsoft Azure: |
|
95 | 97 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
96 | 98 |
|
97 | 99 |
|
| 100 | +# ---------------------------------- |
| 101 | +# --- Linux (Ubuntu) arm64 steps --- |
| 102 | +# ---------------------------------- |
| 103 | +# |
| 104 | + linux-arm64 |
| 105 | + runs-on: ubuntu-24.04 |
| 106 | + steps: |
| 107 | + |
| 108 | + # --- Clone the latest commit --- |
| 109 | + - name: Checkout |
| 110 | + uses: actions/checkout@v3 |
| 111 | + with: |
| 112 | + fetch-tags: true |
| 113 | + submodules: recursive |
| 114 | + fetch-depth: 0 |
| 115 | + |
| 116 | + # --- Config git and get the version from "git describe" --- |
| 117 | + - name: Config Git |
| 118 | + id: config_git |
| 119 | + shell: bash |
| 120 | + run: | |
| 121 | + git config user.email "[email protected]" |
| 122 | + git config user.name "Ho-Ro" |
| 123 | + git fetch --tags --force || true |
| 124 | + git submodule update --init --recursive |
| 125 | + echo "git_describe=$(git describe)" |
| 126 | + echo "git_describe=$(git describe)" >> $GITHUB_OUTPUT |
| 127 | +
|
| 128 | + - name: Install Ubuntu Build Requirements |
| 129 | + run: | |
| 130 | + mkdir build |
| 131 | + sudo apt update |
| 132 | + # sudo apt -y upgrade |
| 133 | + sudo apt install g++ make cmake fakeroot rpm \ |
| 134 | + libfftw3-dev binutils-dev libusb-1.0-0-dev libcups2-dev libxkbcommon-dev \ |
| 135 | + libqt6core6t64 libqt6gui6 libqt6widgets6 libqt6printsupport6 \ |
| 136 | + libqt6opengl6 libqt6openglwidgets6 qt6-tools-dev |
| 137 | +
|
| 138 | + - name: Ubuntu Build |
| 139 | + # GitHub hosts Linux runners on Standard_DS2_v2 virtual machines in Microsoft Azure: |
| 140 | + # 2-core CPU, 7 GB of RAM memory, 14 GB of SSD disk space |
| 141 | + working-directory: ${{github.workspace}}/build |
| 142 | + run: | |
| 143 | + cp ../CHANGELOG changelog |
| 144 | + cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
| 145 | + make -j8 |
| 146 | + fakeroot make -j8 package |
| 147 | + ls -l packages |
| 148 | +
|
| 149 | + - name: Upload Ubuntu Artifacts |
| 150 | + # *.deb *.rpm *.tgz |
| 151 | + uses: actions/upload-artifact@v4 |
| 152 | + with: |
| 153 | + name: openhantek_${{ steps.config_git.outputs.git_describe }}_linux_arm64 |
| 154 | + path: ${{github.workspace}}/build/packages/* |
| 155 | + |
| 156 | + - name: Upload Linux Release Assets |
| 157 | + if: startsWith(github.ref, 'refs/tags/') |
| 158 | + uses: softprops/action-gh-release@v1 |
| 159 | + with: |
| 160 | + prerelease: true |
| 161 | + files: ./build/packages/* |
| 162 | + env: |
| 163 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 164 | + |
| 165 | + |
98 | 166 | # ------------------------- |
99 | 167 | # --- macOS intel steps --- |
100 | 168 | # ------------------------- |
|
0 commit comments