mirror of
https://github.com/angt/secret
synced 2024-12-25 21:58:25 +01:00
Add a GH build workflow
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
3d8c11f77d
commit
11625a500a
3 changed files with 30 additions and 4 deletions
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macOS-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
make prefix=. install
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.os }}
|
||||||
|
path: ./bin
|
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ secret:
|
||||||
|
|
||||||
install: secret
|
install: secret
|
||||||
mkdir -p $(DESTDIR)$(prefix)/bin
|
mkdir -p $(DESTDIR)$(prefix)/bin
|
||||||
cp -f secret $(DESTDIR)$(prefix)/bin
|
mv -f secret $(DESTDIR)$(prefix)/bin
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(prefix)/bin/secret
|
rm -f $(DESTDIR)$(prefix)/bin/secret
|
||||||
|
|
|
@ -16,13 +16,16 @@ Keep your little secrets, publicly.
|
||||||
|
|
||||||
## Build and install
|
## Build and install
|
||||||
|
|
||||||
|
Clone the repository recursively:
|
||||||
|
|
||||||
$ git clone https://github.com/angt/secret --recursive
|
$ git clone https://github.com/angt/secret --recursive
|
||||||
$ cd secret
|
$ cd secret
|
||||||
$ make
|
|
||||||
|
|
||||||
Then, as `root`:
|
Then, run as `root`:
|
||||||
|
|
||||||
# make install prefix=/usr
|
# make install
|
||||||
|
|
||||||
|
As usual, you can customize the destination with `DESTDIR` and `prefix`.
|
||||||
|
|
||||||
Currently, bash completion is not installed.
|
Currently, bash completion is not installed.
|
||||||
Download the file [argz.sh](argz/argz.sh) then:
|
Download the file [argz.sh](argz/argz.sh) then:
|
||||||
|
|
Loading…
Reference in a new issue