chore(main): release 1.18.0 #31
Workflow file for this run
This file contains hidden or 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
| name: "Build and Upload" | |
| on: | |
| push: | |
| tags: ["v*.*.*"] | |
| jobs: | |
| build-and-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set CMake project version to release | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| sed -i 's/project(awcc LANGUAGES CXX VERSION .*)/project(awcc LANGUAGES CXX VERSION '"$VERSION"')/' CMakeLists.txt | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt install libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev libxkbcommon-dev wayland-protocols libwayland-dev libwayland-egl-backend-dev pkg-config cmake ninja-build | |
| sudo apt-get install git meson libgl-dev pkgconf libudev-dev | |
| - name: Build AWCC | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake .. -G Ninja | |
| ninja | |
| cd .. | |
| - name: Prepare release files | |
| run: | | |
| mkdir release | |
| cp build/awcc release/ | |
| cp -r app release/ | |
| cp database.json release/ | |
| cp LICENSE release/ | |
| - name: Create tarball with awcc binary, app folder, and LICENSE | |
| run: | | |
| tar -czvf AWCC-${{ github.ref_name }}.tar.gz -C release awcc app LICENSE database.json | |
| - name: Upload tarball as release asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: AWCC-${{ github.ref_name }}.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |