@@ -11,14 +11,24 @@ jobs:
1111 strategy :
1212 matrix :
1313 config :
14+ - name : mobdap-jar
15+ os : ubuntu-24.04
16+ profile : jar
1417 - name : mobdap-linux-x86_64
1518 os : ubuntu-24.04
19+ profile : unix
1620 - name : mobdap-linux-arm64
1721 os : ubuntu-24.04-arm
18- # - name: mobdap-windows-x86_64
19- # os: windows-latest
22+ profile : unix
23+ - name : mobdap-macos-x86_64
24+ os : macos-13
25+ profile : unix
2026 - name : mobdap-macos-arm64
2127 os : macos-latest
28+ profile : unix
29+ # - name: mobdap-windows-x86_64
30+ # os: windows-latest
31+ # profile: windows
2232 runs-on : ${{ matrix.config.os }}
2333 steps :
2434 - uses : actions/checkout@v4
@@ -35,28 +45,46 @@ jobs:
3545 lein : 2.11.2
3646
3747 - name : build ${{ matrix.config.name }}
48+ if : matrix.config.profile == 'jar'
49+ run : |
50+ lein set-version ${{ github.ref_name }}
51+ lein uberjar
52+
53+ - name : build ${{ matrix.config.name }}
54+ if : matrix.config.profile != 'jar'
3855 run : |
3956 lein set-version ${{ github.ref_name }}
4057 lein native-image
4158
42- - name : " compress unix: ${{ matrix.config.name }}"
43- if : matrix.config.os != 'windows-latest '
59+ - name : move jar ${{ matrix.config.name }}
60+ if : matrix.config.profile == 'jar '
4461 run : |
45- tar -czvf ${{ matrix.config.name }}.tar.gz target/native-image/mobdap*
62+ mv target/uberjar/mobdap-*-standalone.jar ${{ matrix.config.name }}
4663
47- - name : " compress windows: ${{ matrix.config.name }}"
48- if : matrix.config.os == 'windows-latest'
64+ - name : " upload jar: ${{ matrix.config.name }}"
65+ if : matrix.config.profile == 'jar'
66+ uses : softprops/action-gh-release@v2
67+ with :
68+ files : ${{ matrix.config.name }}.jar
69+
70+ - name : " compress unix: ${{ matrix.config.name }}"
71+ if : matrix.config.profile == 'unix'
4972 run : |
50- Compress-Archive -Path target/native-image/mobdap* -Destination ${{ matrix.config.name }}.zip
73+ tar -czvf ${{ matrix.config.name }}.tar.gz target/native-image/mobdap*
5174
5275 - name : " upload unix: ${{ matrix.config.name }}"
53- if : matrix.config.os != 'windows-latest '
76+ if : matrix.config.profile == 'unix '
5477 uses : softprops/action-gh-release@v2
5578 with :
5679 files : ${{ matrix.config.name }}.tar.gz
5780
81+ - name : " compress windows: ${{ matrix.config.name }}"
82+ if : matrix.config.profile == 'windows'
83+ run : |
84+ Compress-Archive -Path target/native-image/mobdap* -Destination ${{ matrix.config.name }}.zip
85+
5886 - name : " upload windows: ${{ matrix.config.name }}"
59- if : matrix.config.os == 'windows-latest '
87+ if : matrix.config.profile == 'windows'
6088 uses : softprops/action-gh-release@v2
6189 with :
6290 files : ${{ matrix.config.name }}.zip
0 commit comments