Skip to content

Commit 5de290f

Browse files
committed
Add linux ci.
1 parent 5aadd9e commit 5de290f

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
- uses: actions/cache@v4
1414
with:
1515
path: |
16-
~/work/Nuitka-Python/Nuitka-Python-Deps
16+
${{ github.workspace }}/../Nuitka-Python-Deps
1717
dep-build
1818
key: ${{ runner.os }}-arm-${{ hashFiles('build.mac.sh') }}
1919
- name: Uninstall homebrew
2020
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
2121
- name: Run Build
22-
run: bash build.mac.sh
22+
run: bash build.mac.sh "${{ github.workspace }}/../Nuitka-Python-Out"
2323
- name: Cleanup artifact
24-
run: find ~/Library/Nuitka-Python311-arm64 \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
24+
run: find "${{ github.workspace }}/../Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
2525
- uses: actions/upload-artifact@v4
2626
with:
2727
name: Nuitka-Python311_mac_arm64
28-
path: ~/Library/Nuitka-Python311-arm64
28+
path: ${{ github.workspace }}/../Nuitka-Python-Out
2929
mac_x64:
3030
name: MacOS Intel Build
3131
runs-on: macos-latest
@@ -35,19 +35,40 @@ jobs:
3535
- uses: actions/cache@v4
3636
with:
3737
path: |
38-
~/work/Nuitka-Python/Nuitka-Python-Deps
38+
${{ github.workspace }}/../Nuitka-Python-Deps
3939
dep-build
4040
key: ${{ runner.os }}-intel-${{ hashFiles('build.mac.sh') }}
4141
- name: Uninstall homebrew
4242
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
4343
- name: Run Build
44-
run: arch -x86_64 bash build.mac.sh
44+
run: arch -x86_64 bash build.mac.sh "${{ github.workspace }}/../Nuitka-Python-Out"
4545
- name: Cleanup artifact
46-
run: find ~/Library/Nuitka-Python311-x86_64 \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
46+
run: find "${{ github.workspace }}/../Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
4747
- uses: actions/upload-artifact@v4
4848
with:
4949
name: Nuitka-Python311_mac_x86_64
50-
path: ~/Library/Nuitka-Python311-x86_64
50+
path: ${{ github.workspace }}/../Nuitka-Python-Out
51+
52+
linux:
53+
name: Ubuntu Build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Check out repository code
57+
uses: actions/checkout@v4
58+
- uses: actions/cache@v4
59+
with:
60+
path: |
61+
${{ github.workspace }}/../Nuitka-Python-Deps
62+
dep-build
63+
key: ${{ runner.os }}-${{ hashFiles('build.sh') }}
64+
- name: Run Build
65+
run: bash build.sh "${{ github.workspace }}/../Nuitka-Python-Out"
66+
- name: Cleanup artifact
67+
run: find "${{ github.workspace }}/../Nuitka-Python-Out" \( -iname '*.o' -o -iname '__pycache__' -o -iname 'link.json' \) | xargs rm -rf
68+
- uses: actions/upload-artifact@v4
69+
with:
70+
name: Nuitka-Python311_ubuntu
71+
path: ${{ github.workspace }}/../Nuitka-Python-Out
5172

5273
windows:
5374
name: Windows Build

0 commit comments

Comments
 (0)