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: