From 11625a500a7cabea68ca01e1ed5ad0917ac9b9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Sat, 25 Apr 2020 22:19:08 +0000 Subject: [PATCH] Add a GH build workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ Makefile | 2 +- README.md | 9 ++++++--- 3 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..be52c49 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/Makefile b/Makefile index 0f23a7a..ad966c9 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ secret: install: secret mkdir -p $(DESTDIR)$(prefix)/bin - cp -f secret $(DESTDIR)$(prefix)/bin + mv -f secret $(DESTDIR)$(prefix)/bin uninstall: rm -f $(DESTDIR)$(prefix)/bin/secret diff --git a/README.md b/README.md index 2395463..28edb81 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,16 @@ Keep your little secrets, publicly. ## Build and install +Clone the repository recursively: + $ git clone https://github.com/angt/secret --recursive $ 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. Download the file [argz.sh](argz/argz.sh) then: