-
-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (45 loc) · 1.79 KB
/
release.yaml
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
---
name: Build & release
"on":
# Target are chosen so that all commits get a chance to have their build tested.
push:
branches:
- main
pull_request:
jobs:
release:
uses: kdeldycke/workflows/.github/workflows/[email protected]
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
test-binaries:
needs: release
strategy:
matrix: ${{ fromJSON(needs.release.outputs.nuitka_matrix) }}
runs-on: ${{ matrix.os }}
steps:
- name: Download artifacts
uses: actions/[email protected]
id: artifacts
with:
name: ${{ matrix.bin_name }}
- name: Set binary permissions
if: runner.os != 'Windows'
run: |
chmod +x ${{ steps.artifacts.outputs.download-path }}/${{ matrix.bin_name }}
# Runs the same binary tests as in the brew official Formula:
# https://github.com/Homebrew/homebrew-core/blob/f0a4d69/Formula/meta-package-manager.rb#L401-L413
- name: mpm --verbosity DEBUG --version
run: |
${{ steps.artifacts.outputs.download-path }}/${{ matrix.bin_name }} --verbosity DEBUG --version
- name: mpm --help
run: |
${{ steps.artifacts.outputs.download-path }}/${{ matrix.bin_name }} --help
- name: mpm --output-format csv --all-managers managers
run: >
${{ steps.artifacts.outputs.download-path }}/${{ matrix.bin_name }}
--output-format csv --all-managers managers
- name: mpm --no-color --output-format csv installed
# XXX Ideally we would like to use --no-color to simplify Homebrew's formula checks.
# See: https://github.com/kdeldycke/meta-package-manager/issues/1004
run: |
${{ steps.artifacts.outputs.download-path }}/${{ matrix.bin_name }} --no-color --output-format csv installed