1
0
Fork 0
mirror of https://github.com/reisub0/sway-alttab synced 2024-05-13 02:36:05 +02:00

Adds i3 support (experimental)

Signed-off-by: reisub0 <reisub0@gmail.com>
This commit is contained in:
reisub0 2020-07-19 15:48:14 +05:30
parent 3e9cb5296b
commit f4214cb5ad
No known key found for this signature in database
GPG Key ID: 58333CC586D729B4
3 changed files with 146 additions and 1 deletions

39
.github/workflows/build-i3.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: build
on: [push]
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
ref: i3
- name: Cargo check
run: cargo check --verbose
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
ref: i3
- name: Cargo test
run: cargo test --verbose
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: i3
- name: Build
run: cargo build --verbose

106
.github/workflows/release-i3.yml vendored Normal file
View File

@ -0,0 +1,106 @@
name: release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
ref: i3
- name: Cargo check
run: cargo check --verbose
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
ref: i3
- name: Cargo test
run: cargo test --verbose
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
ref: i3
- name: Build
run: cargo build --verbose
release-build:
name: Release Build
runs-on: ubuntu-latest
needs: [check, test, build]
steps:
- name: Checkout
uses: actions/checkout@v1
with:
ref: i3
- name: Build Release
run: cargo build --release --verbose
- name: Strip unnecessary symbols
run: strip ./target/release/i3-alttab
- name: Upload build artifact
uses: actions/upload-artifact@v1
with:
name: binary
path: ./target/release/i3-alttab
release:
name: Release
runs-on: ubuntu-latest
needs: [release-build]
steps:
- name: Download artifact
uses: actions/download-artifact@v1
with:
name: binary
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
# - name: Print tree
# shell: bash
# run: |
# echo HELLO
# tree -CAhF --dirsfirst
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: binary/i3-alttab
asset_name: i3-alttab
asset_content_type: application/octet-stream

View File

@ -1,6 +1,6 @@
[package]
name = "sway-alttab"
description = "Simple Alt-Tab daemon for SwayWM. Switches back to previous focused window on SIGUSR1"
description = "Simple Alt-Tab daemon for SwayWM/i3. Switches back to previous focused window on SIGUSR1"
version = "1.1.2"
authors = ["Govind KP <reisub0@gmail.com>"]
repository = "https://github.com/reisub0/sway-alttab"