-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI bugfixes Update zip_dist_ci.yaml Update zip_dist_ci.yaml
- Loading branch information
Showing
4 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Zip dist CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
remote_build_dir: /home/${{ secrets.IBMI_USER }}/build/${{ github.sha }}/ | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
environment: ossbuild | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: maven | ||
|
||
- name: Get Maven project version | ||
run: | | ||
echo "project_version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.1.0:exec --file pom.xml)" >> $GITHUB_ENV | ||
cat $GITHUB_ENV | ||
- name: create jt400 psudo-directory | ||
run: sudo mkdir -p /QIBM/ProdData/OS400/jt400/lib/ | ||
- name: change ownership of jt400 psudo-directory | ||
run: sudo chown $USER /QIBM/ProdData/OS400/jt400/lib/ | ||
- name: fetch jt400.jar | ||
run: sudo curl https://repo1.maven.org/maven2/net/sf/jt400/jt400/10.7/jt400-10.7.jar -o /QIBM/ProdData/OS400/jt400/lib/jt400.jar | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: create staging directory | ||
run: | | ||
mkdir -p staging/opt/mapepire/lib/ | ||
mkdir -p staging/opt/mapepire/bin/ | ||
- name: Populate staging directory | ||
run: | | ||
mv scripts/mapepire-start.sh staging/opt/mapepire/bin/mapepire | ||
mv target/mapepire-server-${{ env.project_version }}-jar-with-dependencies.jar staging/opt/mapepire/lib/mapepire.jar | ||
- name: Create distribution .zip | ||
run: | | ||
pushd staging/opt/ | ||
zip ../../mapepire-server-${{ env.project_version }}.zip mapepire | ||
popd | ||
- name: Upload dist artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: mapepire-server-${{ env.project_version }}.zip | ||
path: mapepire-server-${{ env.project_version }}.zip | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/QOpenSys/pkgs/bin/bash | ||
exec /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/bin/java -jar /opt/mapepire-server/lib/mapepire-server.jar |