Skip to content

Commit 3e8471a

Browse files
committed
ci: cleanup
1 parent bf9c6a4 commit 3e8471a

File tree

5 files changed

+115
-8
lines changed

5 files changed

+115
-8
lines changed

.github/workflows/amd64_linux.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,30 @@ jobs:
1313
strategy:
1414
matrix:
1515
cmake: [
16-
{generator: "Unix Makefiles", config: "Release"},
17-
{generator: "Ninja", config: "Release"},
18-
{generator: "Ninja Multi-Config", config: "Release"},
16+
{name: "Make", generator: "Unix Makefiles", config: "Release"},
17+
{name: "Ninja", generator: "Ninja", config: "Release"},
18+
{name: "NinjaMulti", generator: "Ninja Multi-Config", config: "Release"},
19+
]
20+
python: [
21+
{version: "3.9"},
22+
#{version: "3.10"},
23+
#{version: "3.11"},
24+
{version: "3.12"},
25+
{version: "3.13"},
1926
]
2027
fail-fast: false
21-
name: Linux•CMake(${{matrix.cmake.generator}})
28+
name: Linux•${{matrix.cmake.name}}•Py${{matrix.python.version}}
2229
runs-on: ubuntu-latest
2330
steps:
2431
- uses: actions/checkout@v5
32+
- name: Setup Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{matrix.python.version}}
36+
- name: Check Python
37+
run: python --version
38+
- name: Update Path
39+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
2540
- name: Install Ninja
2641
run: |
2742
sudo apt-get update

.github/workflows/amd64_macos.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,26 @@ jobs:
1616
{name: "Xcode", generator: "Xcode", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: install},
1717
{name: "Make", generator: "Unix Makefiles", config: Release, build_target: all, test_target: test, install_target: install},
1818
]
19+
python: [
20+
{version: "3.9"},
21+
#{version: "3.10"},
22+
#{version: "3.11"},
23+
#{version: "3.12"},
24+
{version: "3.13"},
25+
]
1926
fail-fast: false
20-
name: MacOS•CMake(${{matrix.cmake.name}})
27+
name: MacOS•${{ matrix.cmake.name }}•Py${{ matrix.python.version }}
2128
runs-on: macos-13 # last macos intel based runner
2229
steps:
2330
- uses: actions/checkout@v5
31+
- name: Setup Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: ${{ matrix.python.version }}
35+
- name: Update Path
36+
run: |
37+
echo "$HOME/Library/Python/${{ matrix.python.version }}/bin" >> $GITHUB_PATH
38+
echo "$HOME/.local/bin" >> $GITHUB_PATH
2439
- name: Check CMake
2540
run: cmake --version
2641
- name: Configure

.github/workflows/amd64_windows.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,29 @@ jobs:
1616
{name: "VS22", generator: "Visual Studio 17 2022", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
1717
{name: "VS22", generator: "Visual Studio 17 2022", config: Debug, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
1818
]
19+
python: [
20+
{version: "3.9", dir: Python309},
21+
#{version: "3.10", dir: Python310},
22+
#{version: "3.11", dir: Python311},
23+
{version: "3.12", dir: Python312},
24+
#{version: "3.13", dir: Python313},
25+
]
1926
fail-fast: false
20-
name: Windows•CMake(${{matrix.cmake.name}},${{matrix.cmake.config}})
27+
name: Windows•${{matrix.cmake.name}}(${{matrix.cmake.config}})•Py${{matrix.python.version}}
2128
runs-on: windows-latest
2229
env:
2330
CTEST_OUTPUT_ON_FAILURE: 1
2431
steps:
2532
- uses: actions/checkout@v5
33+
- uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python.version }}
36+
- name: Install python3
37+
run: python3 -m pip install --user mypy setuptools wheel numpy pandas
38+
- name: Add Python binaries to path
39+
run: >
40+
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
41+
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
2642
- name: Check CMake
2743
run: |
2844
cmake --version

.github/workflows/arm64_macos.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,26 @@ jobs:
1616
{name: "Xcode", generator: "Xcode", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: install},
1717
{name: "Make", generator: "Unix Makefiles", config: Release, build_target: all, test_target: test, install_target: install},
1818
]
19+
python: [
20+
{version: "3.9"},
21+
#{version: "3.10"},
22+
#{version: "3.11"},
23+
{version: "3.12"},
24+
#{version: "3.13"},
25+
]
1926
fail-fast: false
20-
name: MacOS•CMake(${{matrix.cmake.name}})
21-
runs-on: macos-latest # M1 based runner
27+
name: MacOS•${{matrix.cmake.name}}•Py${{matrix.python.version}}
28+
runs-on: macos-latest # macos M1 based runner
2229
steps:
2330
- uses: actions/checkout@v5
31+
- name: Setup Python
32+
uses: actions/setup-python@v5
33+
with:
34+
python-version: ${{ matrix.python.version }}
35+
- name: Update Path
36+
run: |
37+
echo "$HOME/Library/Python/${{ matrix.python.version }}/bin" >> $GITHUB_PATH
38+
echo "$HOME/.local/bin" >> $GITHUB_PATH
2439
- name: Check CMake
2540
run: cmake --version
2641
- name: Configure
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# ref: https://github.com/docker-library/official-images
2+
name: riscv64 Docker
3+
4+
on: [push, pull_request, workflow_dispatch]
5+
6+
jobs:
7+
docker:
8+
strategy:
9+
matrix:
10+
distro: [
11+
# almalinux,
12+
alpine,
13+
debian, # currently only unstable not latest
14+
# fedora,
15+
# opensuse,
16+
# rockylinux,
17+
#ubuntu,
18+
]
19+
fail-fast: false
20+
name: riscv64 • ${{ matrix.distro }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
- name: Check docker
27+
run: |
28+
docker info
29+
docker buildx ls
30+
- name: Build env image
31+
run: make --directory=ci riscv64_${{ matrix.distro }}_env
32+
- name: Build devel project
33+
run: make --directory=ci riscv64_${{ matrix.distro }}_devel
34+
- name: Build project
35+
run: make --directory=ci riscv64_${{ matrix.distro }}_build
36+
- name: Test project
37+
run: make --directory=ci riscv64_${{ matrix.distro }}_test
38+
39+
- name: Build install env image
40+
run: make --directory=ci riscv64_${{ matrix.distro }}_install_env
41+
- name: Build install devel project
42+
run: make --directory=ci riscv64_${{ matrix.distro }}_install_devel
43+
- name: Build install project
44+
run: make --directory=ci riscv64_${{ matrix.distro }}_install_build
45+
- name: Test install project
46+
run: make --directory=ci riscv64_${{ matrix.distro }}_install_test

0 commit comments

Comments
 (0)