Skip to content

Commit

Permalink
[#117] Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
quicklizard99 committed Oct 24, 2021
1 parent 794958a commit dadc9d3
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04]
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, 3.10.0]
# os: [ubuntu-18.04]
# python-version: [2.7, 3.6, 3.7, 3.8, 3.9, 3.10.0]
include:
- os: macos-10.15
# - os: macos-10.15
# python-version: 3.10.0
- os: windows-2019
python-version: 3.10.0
# TODO Include DLLs in source code?
# - os: windows-2019
# python-version: 3.10
architecture: 'x86'
- os: windows-2019
python-version: 3.10.0
architecture: 'x64'

runs-on: ${{ matrix.os }}

Expand All @@ -30,15 +33,24 @@ jobs:
brew update
brew install zbar
- name: Download 32-bit DLLs
if: {{ runner.os == 'Windows' && matrix.architecture == 'x86' }}
run: |
wget https://github.com/NaturalHistoryMuseum/barcode-reader-dlls/releases/download/0.1/libzbar-32.dll https://github.com/NaturalHistoryMuseum/barcode-reader-dlls/releases/download/0.1/libiconv-2.dll
- name: Download 64-bit DLLs
if: {{ runner.os == 'Windows' && matrix.architecture == 'x64' }}
run: |
wget https://github.com/NaturalHistoryMuseum/barcode-reader-dlls/releases/download/0.1/libzbar-64.dll https://github.com/NaturalHistoryMuseum/barcode-reader-dlls/releases/download/0.1/libiconv.dll
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# TODO Both x64 and x86 on Windows
architecture: 'x64'
architecture: ${{ matrix.architecture }}

- name: Install dependencies
run: |
Expand Down

0 comments on commit dadc9d3

Please sign in to comment.