Skip to content

Commit 1ea9b19

Browse files
committed
Update GitHub Actions workflow to set up MSVC environment for Windows builds
1 parent 5fb26db commit 1ea9b19

File tree

4 files changed

+21
-304
lines changed

4 files changed

+21
-304
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# This file is autogenerated by maturin v1.5.1
2-
# To update, run
3-
#
4-
# maturin generate-ci github
5-
#
61
name: CI
72

83
on:
@@ -32,8 +27,6 @@ jobs:
3227
target: aarch64
3328
- runner: ubuntu-latest
3429
target: armv7
35-
- runner: ubuntu-latest
36-
target: s390x
3730
- runner: ubuntu-latest
3831
target: ppc64le
3932
steps:
@@ -55,20 +48,27 @@ jobs:
5548
path: dist
5649

5750
windows:
58-
runs-on: ${{ matrix.platform.runner }}
51+
runs-on: windows-latest
5952
strategy:
6053
matrix:
6154
platform:
62-
- runner: windows-latest
63-
target: x64
64-
- runner: windows-latest
65-
target: x86
55+
- target: x64
56+
- target: x86
6657
steps:
6758
- uses: actions/checkout@v4
6859
- uses: actions/setup-python@v5
6960
with:
7061
python-version: '3.10'
7162
architecture: ${{ matrix.platform.target }}
63+
- name: Install MSVC Build Tools
64+
run: |
65+
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional"
66+
choco install python --version 3.10
67+
python -m pip install --upgrade pip
68+
- name: Set up MSVC environment
69+
shell: cmd
70+
run: |
71+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
7272
- name: Build wheels
7373
uses: PyO3/maturin-action@v1
7474
with:
@@ -129,10 +129,18 @@ jobs:
129129
needs: [linux, windows, macos, sdist]
130130
steps:
131131
- uses: actions/download-artifact@v4
132+
with:
133+
name: wheels-linux-x86_64
134+
- uses: actions/download-artifact@v4
135+
with:
136+
name: wheels-windows-x64
137+
- uses: actions/download-artifact@v4
138+
with:
139+
name: wheels-macos-x86_64
132140
- name: Publish to PyPI
133141
uses: PyO3/maturin-action@v1
134142
env:
135-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_PASSWORD }}
143+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
136144
with:
137145
command: upload
138146
args: --non-interactive --skip-existing wheels-*/*

src/intelligence/language.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
mod c;
22
mod c_sharp;
3-
mod cobol;
43
mod cpp;
54
mod go;
65
mod java;
@@ -31,7 +30,6 @@ pub static ALL_LANGUAGES: &[&TSLanguageConfig] = &[
3130
&cpp::CPP,
3231
&ruby::RUBY,
3332
&r::R,
34-
&cobol::COBOL,
3533
];
3634

3735
/// A generic language wrapper type.

src/intelligence/language/cobol/mod.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/intelligence/language/cobol/scopes.scm

Lines changed: 0 additions & 273 deletions
This file was deleted.

0 commit comments

Comments
 (0)