Add a GH build workflow

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët 2020-04-25 22:19:08 +00:00
parent 3d8c11f77d
commit 11625a500a
3 changed files with 30 additions and 4 deletions

23
.github/workflows/build.yml vendored Normal file
View 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

View file

@ -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

View file

@ -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: