Skip to content

Commit 0401e73

Browse files
committed
initial commit
0 parents  commit 0401e73

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
test-ubuntu:
8+
strategy:
9+
matrix:
10+
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
11+
os:
12+
- ubuntu-24.04
13+
- ubuntu-22.04
14+
- ubuntu-20.04
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- run: cat /etc/os-release
18+
- run: lsb_release -a
19+
test-macos:
20+
strategy:
21+
matrix:
22+
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
23+
os:
24+
- macos-15-large
25+
- macos-15 # = macos-15-xlarge
26+
- macos-14-large
27+
- macos-14 # = macos-14-xlarge
28+
- macos-13 # = macos-13-large
29+
- macos-13-xlarge
30+
- macos-12
31+
- macos-12-large
32+
runs-on: ${{ matrix.os }}
33+
steps:
34+
- run: sw_vers
35+
- run: sw_vers | awk '/ProductVersion/ { print $2 }'
36+
test-windows:
37+
strategy:
38+
matrix:
39+
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
40+
os:
41+
- windows-2022
42+
- windows-2019
43+
runs-on: ${{ matrix.os }}
44+
steps:
45+
- run: systeminfo
46+
- run: systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(The MIT LICENSE)
2+
3+
Copyright (c) 2024 sasa+1 <sasaplus1@gmail.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to
7+
deal in the Software without restriction, including without limitation the
8+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9+
sell copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21+
IN THE SOFTWARE.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# github-actions-get-os-version
2+
3+
get OS version
4+
5+
## License
6+
7+
The MIT license

0 commit comments

Comments
 (0)