Skip to content

Commit

Permalink
Testing: Just download base eclipse and create the artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Mar 20, 2024
1 parent a096dca commit fe5ad86
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 61 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,33 +97,33 @@ jobs:
needs: [create-splash-image, collect-github-api-artifacts]
runs-on: [macos-12]
steps:
- name: Start message
run: echo "Started CI build (Eclipse eMoflon macOS dev HiPE)."
# - name: Start message
# run: echo "Started CI build (Eclipse eMoflon macOS dev HiPE)."
- name: Install dependencies
run: |
brew install p7zip coreutils grep wget curl
- name: Check out repository code
uses: actions/checkout@v4
- name: Download splash image
uses: actions/download-artifact@v4
with:
name: splash.bmp
- name: Download emoflon-headless updatesite
uses: actions/download-artifact@v4
with:
name: emoflon-headless-updatesite.zip
- name: Move emoflon-headless updatesite
run: |
mkdir -p ./tmp/emoflon-headless
mv emoflon-headless-updatesite.zip ./tmp/emoflon-headless/updatesite.zip
- name: Download Eclipse import plugin JAR
uses: actions/download-artifact@v4
with:
name: com.seeq.eclipse.importprojects.jar
# - name: Download splash image
# uses: actions/download-artifact@v4
# with:
# name: splash.bmp
# - name: Download emoflon-headless updatesite
# uses: actions/download-artifact@v4
# with:
# name: emoflon-headless-updatesite.zip
# - name: Move emoflon-headless updatesite
# run: |
# mkdir -p ./tmp/emoflon-headless
# mv emoflon-headless-updatesite.zip ./tmp/emoflon-headless/updatesite.zip
# - name: Download Eclipse import plugin JAR
# uses: actions/download-artifact@v4
# with:
# name: com.seeq.eclipse.importprojects.jar
- name: Run build script
run: chmod +x build.sh && ./build.sh -m hipedev -o macos
- name: Fix permissions
run: sudo xattr -cr ./eclipse/Eclipse.app
# - name: Fix permissions
# run: sudo xattr -cr ./eclipse/Eclipse.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand Down
82 changes: 41 additions & 41 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ else
fi

# Setup the emoflon headless (special snowflake because of the zipped update site)
setup_emoflon_headless_local_updatesite
#setup_emoflon_headless_local_updatesite

# Extract new Eclipse
log "Clean-up Eclipse folder and extract downloaded archive."
Expand All @@ -232,51 +232,51 @@ elif [[ "$OS" = "macos" ]]; then
fi

# Install global Eclipse settings from config file
install_global_eclipse_settings

log "Install Eclipse plug-ins."
for p in ${ORDER[@]}; do
# Check if eMoflon packages must be skipped (for dev builds).
if [[ "$p" = "emoflon" ]] && [[ $INSTALL_EMOFLON -eq 0 ]]; then
log "Skipping plug-in: $p."
continue
fi
#install_global_eclipse_settings

# log "Install Eclipse plug-ins."
# for p in ${ORDER[@]}; do
# # Check if eMoflon packages must be skipped (for dev builds).
# if [[ "$p" = "emoflon" ]] && [[ $INSTALL_EMOFLON -eq 0 ]]; then
# log "Skipping plug-in: $p."
# continue
# fi

# Check if Dark Theme packages must be skipped (for CI builds = completely headless).
if [[ "$p" = "theme" ]] && [[ $SKIP_THEME -eq 1 ]]; then
log "Skipping plug-in: $p."
continue
fi

# Check if additional packages must be skipped (for CI builds).
if [[ "$p" = "additional" ]] && [[ $SKIP_THEME -eq 1 ]]; then
log "Skipping additional plug-ins."
continue
fi

# Check if HiPE must be skipped (for hipe-dev builds).
if [[ "$p" = "hipe" ]] && [[ $SKIP_HIPE -eq 1 ]]; then
log "Skipping plug-in: $p."
continue
fi
log "Installing plug-in: $p."
install_packages "$UPDATESITES" "./packages/$p-packages.list"
done
# # Check if Dark Theme packages must be skipped (for CI builds = completely headless).
# if [[ "$p" = "theme" ]] && [[ $SKIP_THEME -eq 1 ]]; then
# log "Skipping plug-in: $p."
# continue
# fi

# # Check if additional packages must be skipped (for CI builds).
# if [[ "$p" = "additional" ]] && [[ $SKIP_THEME -eq 1 ]]; then
# log "Skipping additional plug-ins."
# continue
# fi

# # Check if HiPE must be skipped (for hipe-dev builds).
# if [[ "$p" = "hipe" ]] && [[ $SKIP_HIPE -eq 1 ]]; then
# log "Skipping plug-in: $p."
# continue
# fi
# log "Installing plug-in: $p."
# install_packages "$UPDATESITES" "./packages/$p-packages.list"
# done

# Install com.seeq.eclipse.importprojects (by hand because there is no public update site)
install_eclipse_import_projects
#install_eclipse_import_projects

# Remove all configured update sites
remove_update_sites

# Deploy custom splash image
if [[ $SKIP_THEME -eq 1 ]]; then
# Skip UI customization for CI builds
log "Skipping custom splash image."
else
log "Deploy custom splash image."
chmod +x splash.sh && ./splash.sh deploy $VERSION $ECLIPSE_BASE_PATH
fi
#remove_update_sites

# # Deploy custom splash image
# if [[ $SKIP_THEME -eq 1 ]]; then
# # Skip UI customization for CI builds
# log "Skipping custom splash image."
# else
# log "Deploy custom splash image."
# chmod +x splash.sh && ./splash.sh deploy $VERSION $ECLIPSE_BASE_PATH
# fi

log "Clean-up old archives and create new archive."
rm -f ./$OUTPUT_FILE
Expand Down

0 comments on commit fe5ad86

Please sign in to comment.