Skip to content

Commit a65de9e

Browse files
author
goweft
committed
Add LICENSE (Apache 2.0), CI workflow, README badges\n\nLICENSE: Apache 2.0, copyright 2026 Steve Gonzalez (goweft)\n\n.github/workflows/ci.yml:\n- Test job: go build + go test ./... + go vet on ubuntu-latest\n- Build matrix: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64\n- Triggers on push and PR to master\n\nREADME.md: CI badge, Apache 2.0 badge, Go 1.22+ badge
1 parent c1f539d commit a65de9e

3 files changed

Lines changed: 174 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.22'
20+
21+
- name: Build
22+
run: go build -o cas ./cmd/cas
23+
24+
- name: Test
25+
run: go test ./... -count=1 -timeout 60s
26+
27+
- name: Vet
28+
run: go vet ./...
29+
30+
build-matrix:
31+
name: Build (${{ matrix.os }}/${{ matrix.arch }})
32+
runs-on: ubuntu-latest
33+
strategy:
34+
matrix:
35+
include:
36+
- os: linux
37+
arch: amd64
38+
- os: linux
39+
arch: arm64
40+
- os: darwin
41+
arch: amd64
42+
- os: darwin
43+
arch: arm64
44+
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- uses: actions/setup-go@v5
49+
with:
50+
go-version: '1.22'
51+
52+
- name: Build
53+
env:
54+
GOOS: ${{ matrix.os }}
55+
GOARCH: ${{ matrix.arch }}
56+
run: go build -o cas-${{ matrix.os }}-${{ matrix.arch }} ./cmd/cas

LICENSE

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
Apache License
2+
Version 2.0, January 2004
3+
http://www.apache.org/licenses/
4+
5+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6+
7+
1. Definitions.
8+
9+
"License" shall mean the terms and conditions for use, reproduction,
10+
and distribution as defined by Sections 1 through 9 of this document.
11+
12+
"Licensor" shall mean the copyright owner or entity authorized by
13+
the copyright owner that is granting the License.
14+
15+
"Legal Entity" shall mean the union of the acting entity and all
16+
other entities that control, are controlled by, or are under common
17+
control with that entity.
18+
19+
"You" (or "Your") shall mean an individual or Legal Entity
20+
exercising permissions granted by this License.
21+
22+
"Source" form shall mean the preferred form for making modifications,
23+
including but not limited to software source code, documentation
24+
source, and configuration files.
25+
26+
"Object" form shall mean any form resulting from mechanical
27+
transformation or translation of a Source form, including but
28+
not limited to compiled object code, generated documentation,
29+
and conversions to other media types.
30+
31+
"Work" shall mean the work of authorship made available under
32+
the License, as indicated by a copyright notice that is included in
33+
or attached to the work.
34+
35+
"Derivative Works" shall mean any work, whether in Source or Object
36+
form, that is based on (or derived from) the Work and for which the
37+
editorial revisions, annotations, elaborations, or other modifications
38+
represent, as a whole, an original work of authorship.
39+
40+
"Contribution" shall mean, as submitted to the Licensor for inclusion
41+
in the Work by the copyright owner or by an individual or Legal Entity
42+
authorized to submit on behalf of the copyright owner.
43+
44+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
45+
whom a Contribution has been received by the Licensor and included
46+
within the Work.
47+
48+
2. Grant of Copyright License. Subject to the terms and conditions of
49+
this License, each Contributor hereby grants to You a perpetual,
50+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
51+
copyright license to reproduce, prepare Derivative Works of,
52+
publicly display, publicly perform, sublicense, and distribute the
53+
Work and such Derivative Works in Source or Object form.
54+
55+
3. Grant of Patent License. Subject to the terms and conditions of
56+
this License, each Contributor hereby grants to You a perpetual,
57+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
58+
patent license to make, use, sell, offer for sale, import, and
59+
otherwise transfer the Work.
60+
61+
4. Redistribution. You may reproduce and distribute copies of the
62+
Work or Derivative Works thereof in any medium, with or without
63+
modifications, and in Source or Object form, provided that You
64+
meet the following conditions:
65+
66+
(a) You must give any other recipients of the Work or Derivative
67+
Works a copy of this License; and
68+
69+
(b) You must cause any modified files to carry prominent notices
70+
stating that You changed the files; and
71+
72+
(c) You must retain, in the Source form of any Derivative Works
73+
that You distribute, all copyright, patent, trademark, and
74+
attribution notices from the Source form of the Work; and
75+
76+
(d) If the Work includes a "NOTICE" text file, you must include a
77+
readable copy of the attribution notices contained within such
78+
NOTICE file.
79+
80+
5. Submission of Contributions. Unless You explicitly state otherwise,
81+
any Contribution submitted for inclusion in the Work shall be under
82+
the terms and conditions of this License.
83+
84+
6. Trademarks. This License does not grant permission to use the trade
85+
names, trademarks, service marks, or product names of the Licensor.
86+
87+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
88+
to in writing, Licensor provides the Work on an "AS IS" BASIS,
89+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
90+
91+
8. Limitation of Liability. In no event and under no legal theory shall
92+
any Contributor be liable for any damages arising from this License.
93+
94+
9. Accepting Warranty or Additional Liability. While redistributing the
95+
Work, You may offer acceptance of support, warranty, indemnity, or
96+
other liability obligations consistent with this License.
97+
98+
END OF TERMS AND CONDITIONS
99+
100+
Copyright 2026 Steve Gonzalez (goweft)
101+
102+
Licensed under the Apache License, Version 2.0 (the "License");
103+
you may not use this file except in compliance with the License.
104+
You may obtain a copy of the License at
105+
106+
http://www.apache.org/licenses/LICENSE-2.0

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
<a href="#quick-start">Quick Start</a>
1616
</p>
1717

18+
<p align="center">
19+
<a href="https://github.com/goweft/cas/actions/workflows/ci.yml">
20+
<img src="https://github.com/goweft/cas/actions/workflows/ci.yml/badge.svg" alt="CI">
21+
</a>
22+
<a href="LICENSE">
23+
<img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License: Apache 2.0">
24+
</a>
25+
<a href="https://go.dev/">
26+
<img src="https://img.shields.io/badge/Go-1.22+-00ADD8.svg" alt="Go 1.22+">
27+
</a>
28+
</p>
29+
1830
---
1931

2032
## The Idea

0 commit comments

Comments
 (0)