Skip to content

Commit

Permalink
Switch to a new continuous integration service to build this system p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
vladpunko committed Sep 30, 2023
1 parent 6ccfbcc commit ae59d07
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .githooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repos:
# Set the list of basic git hooks to find and fix common problems in the current working tree.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9
hooks:
- id: check-executables-have-shebangs
- id: check-yaml
Expand Down
Empty file added .github/.gitkeep
Empty file.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: detach build

on:
push:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Step -- 1.
uses: actions/checkout@v3

- name: Step -- 2.
run: gcc -Wall -Wextra -Werror -Wno-unused-parameter detach.c -o detach
Empty file added .gitkeep
Empty file.
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions README.markdown → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# detach-process

![build](https://github.com/vladpunko/detach-process/actions/workflows/build.yml/badge.svg)

Spawn a new process and detach it from the current interactive session.

![usage-example](https://raw.githubusercontent.com/vladpunko/detach-process/master/detach.gif)
Expand Down
Binary file modified detach.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ fi

workdir="$(mktemp -d)"

_cleanup() {
rm -f -r -- "${workdir}"
}
trap _cleanup 0 1 2 3 6

# Step -- 1.
git clone --depth=1 --branch=master -- https://github.com/vladpunko/detach-process.git "${workdir}" > /dev/null 2>&1 || {
echo 'An error occurred while downloading the source code to the current machine.' >&2
Expand All @@ -25,8 +30,3 @@ gcc -Wall -Wextra -Werror -Wno-unused-parameter "${workdir}/detach.c" -o "${work

# Step -- 3.
install -m 755 "${workdir}/detach" /usr/local/bin/detach

_cleanup() {
rm -f -r -- "${workdir}"
}
trap _cleanup 0 1 2 3 6

0 comments on commit ae59d07

Please sign in to comment.