Skip to content

Commit 4de34a7

Browse files
authored
Merge pull request #513 from pfitaxel/fix-ci-macos
Fix two CI issues
2 parents ffb8abc + a99c61b commit 4de34a7

File tree

6 files changed

+31
-16
lines changed

6 files changed

+31
-16
lines changed

.ci-macosx.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
#!/bin/sh
22

3-
set -e
3+
set -ex
44

55
sw_vers
66
system_profiler SPSoftwareDataType
77
uname -a
88

99
brew update
10+
11+
# homebrew fails to upgrade python due to unlinking failure
12+
# (cf. https://github.com/actions/setup-python/issues/577 )
13+
rm -f /usr/local/bin/2to3
14+
rm -f /usr/local/bin/idle3
15+
rm -f /usr/local/bin/pydoc3
16+
rm -f /usr/local/bin/python3
17+
rm -f /usr/local/bin/python3-config
18+
rm -f /usr/local/bin/2to3-3.11
19+
rm -f /usr/local/bin/idle3.11
20+
rm -f /usr/local/bin/pydoc3.11
21+
rm -f /usr/local/bin/python3.11
22+
rm -f /usr/local/bin/python3.11-config
23+
brew upgrade
24+
1025
brew install pkg-config
1126
brew install opam
1227
brew install libev

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Check out the repo
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
- name: Build Docker images
2323
run: "make docker-images"
2424
- name: Run learn-ocaml build on demo-repository
@@ -43,7 +43,7 @@ jobs:
4343
USE_CLIENT_IMAGE: 'true'
4444
steps:
4545
- name: Check out the repo
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v3
4747
- name: Build Docker images
4848
run: "make docker-images"
4949
- name: Pull server_image
@@ -66,7 +66,7 @@ jobs:
6666
- 'Dockerfile.test-server'
6767
steps:
6868
- name: Check out the repo
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@v3
7070
- name: Run docker build
7171
run: 'file=${{ matrix.dockerfile }} && docker build -t "learn-ocaml-${file#*.}" -f "$file" .'
7272

.github/workflows/build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
runs-on: macos-latest
1515
steps:
1616
- name: Check out the repo
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- name: Build learn-ocaml
1919
run: 'sh .ci-macosx.sh'

.github/workflows/deploy-master.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out the repo
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818
- name: Push to Docker Hub
1919
uses: docker/build-push-action@v1
2020
with:
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: Check out the repo
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3535
- name: Push to Docker Hub
3636
uses: docker/build-push-action@v1
3737
with:
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ubuntu-latest
5151
steps:
5252
- name: Check out the repo
53-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
5454
- name: Push to Docker Hub
5555
# https://github.com/docker/build-push-action/tree/releases/v1#readme
5656
uses: docker/build-push-action@v1

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
steps:
4444
- name: Check out the repo
4545
# Mandatory step (otherwise, hub raises "fatal: Not a git repository")
46-
uses: actions/checkout@v2
46+
uses: actions/checkout@v3
4747
- name: Download workflow artifacts
4848
# cf. https://github.com/actions/download-artifact/issues/3
4949
uses: dawidd6/action-download-artifact@v2
@@ -84,7 +84,7 @@ jobs:
8484
runs-on: ubuntu-latest
8585
steps:
8686
- name: Check out the repo
87-
uses: actions/checkout@v2
87+
uses: actions/checkout@v3
8888
- name: Setup bot user
8989
run: |
9090
git config --global user.email "[email protected]"
@@ -133,7 +133,7 @@ jobs:
133133
run: tag="${{ needs.release-please.outputs.tag_name }}"; echo "::set-output name=tag::${tag#v}"
134134
id: tag
135135
- name: Check out the repo
136-
uses: actions/checkout@v2
136+
uses: actions/checkout@v3
137137
- name: Push to Docker Hub
138138
uses: docker/build-push-action@v1
139139
with:
@@ -154,7 +154,7 @@ jobs:
154154
run: tag="${{ needs.release-please.outputs.tag_name }}"; echo "::set-output name=tag::${tag#v}"
155155
id: tag
156156
- name: Check out the repo
157-
uses: actions/checkout@v2
157+
uses: actions/checkout@v3
158158
- name: Push to Docker Hub
159159
uses: docker/build-push-action@v1
160160
with:
@@ -178,7 +178,7 @@ jobs:
178178
run: tag="${{ needs.release-please.outputs.tag_name }}"; echo "::set-output name=tag::${tag#v}"
179179
id: tag
180180
- name: Check out the repo
181-
uses: actions/checkout@v2
181+
uses: actions/checkout@v3
182182
- name: Push to Docker Hub
183183
# https://github.com/docker/build-push-action/tree/releases/v1#readme
184184
uses: docker/build-push-action@v1

.github/workflows/static-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# we could use an env var, albeit it would be less convenient
2323
steps:
2424
- name: Check out the repo
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Build learn-ocaml-compilation
2727
run: 'docker build -t learn-ocaml-compilation --target=compilation .'
2828
- name: 'Build ${{ matrix.arch_dir }}.zip'
@@ -45,7 +45,7 @@ jobs:
4545
# we could use an env var, albeit it would be less convenient
4646
steps:
4747
- name: Check out the repo
48-
uses: actions/checkout@v2
48+
uses: actions/checkout@v3
4949
- name: Build the binaries
5050
run: |
5151
./scripts/static-build.sh
@@ -77,7 +77,7 @@ jobs:
7777
# we could use an env var, albeit it would be less convenient
7878
steps:
7979
- name: Check out the repo
80-
uses: actions/checkout@v2
80+
uses: actions/checkout@v3
8181
- name: Show OS version
8282
run: |
8383
sw_vers

0 commit comments

Comments
 (0)