fiedl / icecube-simulation-install

Build instructions for a reproducible install of the icecube-simulation framework.
0 stars 0 forks source link

IceCube-Simulation-Install

Build Status

This repository provides reproducible install instructions for the icecube-simulation framework.

Installation on macOS and Ubuntu

The file install.sh contains instructions on how to install the icecube-simulation framework on macOS and Ubuntu.

Use as Github Action

In order to have icecube-simulation built during a github-actions workflow, you may include this script as workflow step like this:

# .github/workflows/build.yml

name: build

jobs:
  build:
    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v1
    - name: "Checkout and build icecube-simulation framework"
      run: curl https://raw.githubusercontent.com/fiedl/icecube-simulation-install/master/install.sh | sudo bash -v -e
      env:
        RELEASE: V06-01-01
        PLATFORM: ubuntu-18.04
        SVN: ${{ secrets.SVN }}
        SVN_ICECUBE_USERNAME: icecube
        SVN_ICECUBE_PASSWORD: ${{ secrets.SVN_ICECUBE_PASSWORD }}
    - name: "Checkout and build your sub-project against icecube-simulation"
      # ...

This will checkout icecube-simulation into ~/icecube/software/icecube-simulation-V06-01-01/src and build it into ~/icecube/software/icecube-simulation-V06-01-01/debug_build.

Parameters:

For a working example, have a look at:

Automated Build Using Vagrant on macOS

In order to have the install scriot run on a virtual machine, this repository provides Vagrant instructions in the Vagrantfile.

# Clone this repository
git clone git@github.com:fiedl/icecube-simulation-install.git

For the automated code checkout to work, you need to provide svn credentials in a secrets file, which is not included in this repository. Please create the following file and provide credentials there:

# .secrets.sh
export SVN="our svn url"
export SVN_ICECUBE_USERNAME="our svn username"
export SVN_ICECUBE_PASSWORD="our svn password"

After that, install and run vagrant:

# Install Vagrant
brew cask instal vagrant

# Start the virtual machine and run the install instructions
vagrant up

After changing the install scripts, rerun via vagrant provision or vagrant reload --provision.

Additional Resources