Skip to content

Stay open momentarily to show active selection #24

Stay open momentarily to show active selection

Stay open momentarily to show active selection #24

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
tags:
- 'v*'
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
# pull-requests: write
# repository-projects: write
steps:
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libxrandr-dev libxrandr2 libxinerama-dev libxinerama1 libxcursor-dev libxcursor1 xorg-dev
version: 1.0
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose util
- name: Build
run: cargo build --release --verbose
- name: Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
- name: move build
run: mv ./target/release/hypr-gridtile ./target/release/hypr-bufferwin ./
- name: Zip
run: zip -r ${{ github.event.repository.name }}-${{ github.ref_name}}-${{ runner.os }}-${{ runner.arch }}.zip README.md hypr-gridtile hypr-bufferwin
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ github.event.repository.name }}-${{ github.ref_name}}-${{ runner.os }}-${{ runner.arch }}.zip
asset_name: ${{ github.event.repository.name }}-${{ github.ref_name}}-${{ runner.os }}-${{ runner.arch }}.zip
asset_content_type: application/zip