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
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build:
name: ${{ matrix.config }} ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x86_64
config: cli
- os: ubuntu-24.04-arm
arch: arm64
config: cli
- os: windows-latest
arch: x86_64
config: cli
- os: macos-latest
arch: arm64
config: cli
- os: macos-13
arch: x86_64
config: cli
- os: ubuntu-latest
arch: x86_64
config: library
- os: windows-latest
arch: x86_64
config: library
- os: macos-latest
arch: arm64
config: library
steps:
- uses: actions/checkout@v4
- name: Install D
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Build
run: dub build --config=${{ matrix.config }} --build=release

gui-linux:
name: gui ubuntu-latest x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Qt
run: |
sudo apt-get update
sudo apt-get install -y qt6-base-dev
- name: Install D
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Build GUI
run: dub build --config=gui --build=release
104 changes: 104 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Release

on:
push:
tags: ['v*']

permissions:
contents: write

jobs:
build:
name: Build ${{ matrix.asset }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
asset: ver-linux-x86_64
lib: libver-linux-x86_64.a
lib_glob: '*.a'
- os: ubuntu-24.04-arm
asset: ver-linux-arm64
lib: libver-linux-arm64.a
lib_glob: '*.a'
- os: windows-latest
asset: ver-windows-x86_64.exe
lib: ver-windows-x86_64.lib
lib_glob: '*.lib'
- os: macos-latest
asset: ver-macos-arm64
lib: libver-macos-arm64.a
lib_glob: '*.a'
- os: macos-13
asset: ver-macos-x86_64
lib: libver-macos-x86_64.a
lib_glob: '*.a'
steps:
- uses: actions/checkout@v4
- name: Install D
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Build CLI
run: dub build --config=cli --build=release
- name: Build library
run: dub build --config=library --build=release
- name: Stage artifacts
shell: bash
run: |
set -euo pipefail
shopt -s nullglob
if [[ "${{ runner.os }}" == "Windows" ]]; then
mv ver.exe "${{ matrix.asset }}"
else
mv ver "${{ matrix.asset }}"
fi
libs=( ${{ matrix.lib_glob }} )
cp "${libs[0]}" "${{ matrix.lib }}"
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset }}
path: |
${{ matrix.asset }}
${{ matrix.lib }}

gui-linux:
name: Build ver-gui-linux-x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Qt
run: |
sudo apt-get update
sudo apt-get install -y qt6-base-dev
- name: Install D
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Build GUI
run: dub build --config=gui --build=release
- name: Stage
run: mv ver-gui ver-gui-linux-x86_64
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ver-gui-linux-x86_64
path: ver-gui-linux-x86_64

release:
needs: [build, gui-linux]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.dub/
*.exe
*.o
*.obj
*.lib
*.a
*.so
*.dylib
ver
ver-gui
bin/
build/
*.lst
dub.selections.json
14 changes: 14 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
= Changelog

All notable changes to this project are documented in this file.

== Unreleased

* Relocate project to `dev-centr/ver`
* Add D library (`ver`), CLI (`ver`), and Qt GUI (`ver-gui`) builds via DUB
* Add multi-OS CI and tagged release artifacts (CLI + static library; Linux GUI)
* Keep legacy C sources under `src/` for reference (Makefile still targets them)

== 0.1.0

* Initial C prototype (git/svn/local handlers)
23 changes: 23 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Loading
Loading