Skip to content

Commit 29c6de6

Browse files
committed
-Add workflow_dispatch support and improve artifact handling in CI configurations
- Remove install of bsdtar
1 parent d0ad0f9 commit 29c6de6

3 files changed

Lines changed: 24 additions & 7 deletions

File tree

.github/workflows/CI.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,21 @@ jobs:
6060
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
6161
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
6262
if: ${{ (env.MAVEN_USERNAME != null) && (github.ref == 'refs/heads/main') }}
63-
run: mvn clean deploy -B
64-
- name: Install bsdtar
65-
run: |
66-
sudo apt-get update
67-
sudo apt-get install -y libarchive-tools
63+
run: mvn clean -DskipTests deploy -B
6864
- name: Unzip production artifacts
6965
run: |
66+
# 1. Unzip into a temporary directory
67+
unzip -q noisemodelling-scripts/target/*.zip -d tmp_extract
68+
69+
# 2. Create target directory
7070
mkdir NoiseModelling
71-
# bsdtar handles .zip and supports --strip-components
72-
bsdtar -xvf noisemodelling-scripts/target/*.zip --strip-components=1 -C NoiseModelling
71+
72+
# 3. Move contents from the subfolder to the target
73+
# The asterisk-slash-asterisk moves everything inside the first subfolder
74+
mv tmp_extract/*/* NoiseModelling/
75+
76+
# 4. Cleanup
77+
rm -rf tmp_extract
7378
- name: Generate Sanitized Artifact Name
7479
id: sanitize
7580
run: |

.github/workflows/build_macos.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Reusable macOS Build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
git_ref:
7+
description: 'The git ref to checkout'
8+
required: true
9+
type: string
410
workflow_call:
511
inputs:
612
git_ref:

.github/workflows/build_windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Reusable Windows Build
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
git_ref:
7+
description: 'The git ref to checkout'
8+
required: true
9+
type: string
410
workflow_call:
511
inputs:
612
git_ref:

0 commit comments

Comments
 (0)