Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,28 @@ jobs:
examples/gta2/compile.cmd
README.md
LICENSE

# A tag such as v1.0.0 publishes a GitHub Release with both binaries, once
# the builds and tests above have passed. Artifacts expire; releases don't.
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [linux, windows]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: dist
- name: Package
run: |
cd dist
chmod +x cpp_permuter-linux-x64/build/cpp_permuter
for d in cpp_permuter-linux-x64 cpp_permuter-windows-x64; do
(cd "$d" && zip -qr "../$d-${GITHUB_REF_NAME}.zip" .)
done
ls -l
- uses: softprops/action-gh-release@v2
with:
files: dist/*.zip
generate_release_notes: true
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ How it works:

## Getting it

Every CI run builds `cpp_permuter-linux-x64` and `cpp_permuter-windows-x64` (the Windows one
needs no Visual C++ redistributable). Download them from the run's artifacts on the
[Actions page](https://github.com/CriminalRETeam/cpp_permuter/actions/workflows/ci.yml), or build
from source:
Download a release from the [Releases page](https://github.com/CriminalRETeam/cpp_permuter/releases):
`cpp_permuter-linux-x64` and `cpp_permuter-windows-x64` (the Windows one needs no Visual C++
redistributable). Pushing a tag such as `v1.0.0` publishes one, after the CI builds and
tests pass. Every CI run also keeps the binaries as artifacts for 90 days on the
[Actions page](https://github.com/CriminalRETeam/cpp_permuter/actions/workflows/ci.yml).

Or build from source:

## Building

Expand Down
Loading