-
Notifications
You must be signed in to change notification settings - Fork 17
79 lines (71 loc) · 2.84 KB
/
windows_docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build Windows Base Images
on:
workflow_dispatch:
inputs:
vcpkg-version:
description: 'VCPKG Version to use in building the images.'
default: ''
arrow-repo:
description: 'Repository to checkout arrow from.'
required: true
default: 'apache/arrow'
arrow-ref:
description: 'Ref to checkout from arrow-repo.'
required: true
default: 'main'
jobs:
build:
name: "Build Windows images"
runs-on: windows-2019
permissions:
contents: read
packages: write
env:
# Turned on by default in .env but Windows does not support buildkit
# BUILDKIT_INLINE_CACHE: 1
DOCKER_BUILDKIT: 0
# archery uses this environment variable
PYTHON: "3.10"
# this is a private repository at the moment (mostly because of licensing
# consideration of windows images with visual studio), but anyone can
# recreate the image by manually building it via:
# `archery build python-wheel-windows-vs2017`
# note that we don't run docker build since there wouldn't be a cache hit
# and rebuilding the dependencies takes a fair amount of time
REPO: ghcr.io/ursacomputing/arrow
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
with:
repository: ${{ github.event.inputs.arrow-repo || 'apache/arrow'}}
path: arrow
ref: ${{ github.event.inputs.arrow-ref || 'main'}}
- name: Login to GitHub Container Registry
shell: bash
run: echo ${{secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install Archery
shell: bash
run: pip install -e arrow/dev/archery[all]
- name: Set custom VCPKG version
if: github.event.inputs.vcpkg-version != ''
shell: bash
run: |
echo "VCPKG=${{ github.event.inputs.vcpkg-version }}" >> $GITHUB_ENV
- name: Build image
shell: cmd
run: |
set PYTHON=3.7&& archery docker build --no-pull python-wheel-windows-vs2017
set PYTHON=3.8&& archery docker build --no-pull python-wheel-windows-vs2017
set PYTHON=3.9&& archery docker build --no-pull python-wheel-windows-vs2017
set PYTHON=3.10&& archery docker build --no-pull python-wheel-windows-vs2017
- name: Push Image
shell: cmd
run: |
set PYTHON=3.7&& archery docker push python-wheel-windows-vs2017
set PYTHON=3.8&& archery docker push python-wheel-windows-vs2017
set PYTHON=3.9&& archery docker push python-wheel-windows-vs2017
set PYTHON=3.10&& archery docker push python-wheel-windows-vs2017