-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (42 loc) · 1.23 KB
/
main.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
on:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'macos-latest']
include:
- os: windows-latest
abbr: WIN
archive: zip
- os: macos-latest
abbr: OSX
archive: tar
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller bible_import.spec
# Make the file executable on macOS
- name: Make file executable
if: matrix.abbr == 'OSX'
run: chmod +x dist/bible_import
- name: Compress artifacts OSX
if: matrix.abbr == 'OSX'
run: |
cd dist
tar -cvf ../bible_import_${{ matrix.abbr }}.${{ matrix.archive }} *
- name: Compress artifacts WIN
if: matrix.abbr == 'WIN'
run: |
cd dist
tar -a -c -f ../bible_import_${{ matrix.abbr }}.${{ matrix.archive }} *
- uses: actions/upload-artifact@v4
with:
name: bible_import.${{ matrix.abbr }}.${{ matrix.archive }}
path: ./bible_import_${{ matrix.abbr }}.${{ matrix.archive }}
compression-level: 0