Skip to content

Commit

Permalink
Update README and build code.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt73 committed Nov 6, 2023
1 parent 24c1ba9 commit 6a4fd75
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build and Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Build
run: |
mkdir build
cd build
cmake ..
make
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: startle-${{ matrix.os }}
path: build/src/startle

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Display structure
run: ls -R
working-directory: artifacts/

- name: Prepare artifacts
run: |
mv artifacts/startle-ubuntu-20.04/startle artifacts/startle-ubuntu
mv artifacts/startle-macos-11/startle artifacts/startle-macos
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
artifacts/startle-ubuntu
artifacts/startle-macos
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The output binary will be located at `build/src/startle`.

To run *startle*, simply execute the binary.
```
(base) schmidt73@schmidt73:~/Desktop/startle/build$ ./src/startle
$ startle
Usage: startle [--help] [--version] {large,small}
Optional arguments:
Expand Down

0 comments on commit 6a4fd75

Please sign in to comment.