Skip to content

Commit f2a133a

Browse files
committed
CI: MSRV build
1 parent 674ca69 commit f2a133a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,48 @@ jobs:
146146
- name: Build for ${{ matrix.name }}
147147
run: maturin build --manylinux=off --cargo-extra-args='${{ matrix.cargo_extra_args }}'
148148

149+
msrv-build:
150+
runs-on: ubuntu-latest
151+
152+
defaults:
153+
run:
154+
working-directory: light-curve
155+
156+
steps:
157+
- uses: actions/checkout@v3
158+
- name: Set up Python 3.6
159+
uses: actions/setup-python@v3
160+
with:
161+
python-version: '3.6'
162+
- name: Set up Python 3.7
163+
uses: actions/setup-python@v3
164+
with:
165+
python-version: '3.7'
166+
- name: Set up Python 3.8
167+
uses: actions/setup-python@v3
168+
with:
169+
python-version: '3.8'
170+
- name: Set up Python 3.9
171+
uses: actions/setup-python@v3
172+
with:
173+
python-version: '3.9'
174+
- name: Set up Python 3.10
175+
uses: actions/setup-python@v3
176+
with:
177+
python-version: '3.10'
178+
- name: Get minimum supported Rust version
179+
run: echo "::set-output name=msrv::$(grep '^rust-version = ' Cargo.toml | grep -o '[0-9.]\+')"
180+
id: get_msrv
181+
- uses: actions-rs/toolchain@v1
182+
with:
183+
toolchain: ${{ steps.get_msrv.outputs.msrv }}
184+
- name: Install maturin
185+
run: pip install maturin
186+
- name: Build
187+
run: |
188+
rustup default ${{ steps.get_msrv.outputs.msrv }}
189+
maturin build
190+
149191
arm:
150192

151193
runs-on: [self-hosted, linux, ARM64]

0 commit comments

Comments
 (0)