Skip to content

Commit

Permalink
$HOME -> ~
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Jun 16, 2023
1 parent f06bc74 commit c4a5e9d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION
path: ~/spaceman_dmm/${{ env.SPACEMAN_DMM_VERSION }}
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }}
- name: Install dmdoc
run: scripts/install-spaceman-dmm.sh dmdoc
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION
path: ~/spaceman_dmm/${{ env.SPACEMAN_DMM_VERSION }}
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }}
- name: Install Dreamchecker
run: scripts/install-spaceman-dmm.sh dreamchecker
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/BYOND-$BYOND_MAJOR.$BYOND_MINOR
path: ~/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
- name: Install Dependencies
run: sudo apt-get install -y uchardet
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/BYOND-$BYOND_MAJOR.$BYOND_MINOR
path: ~/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
- name: Run Tests
env:
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/BYOND-$BYOND_MAJOR.$BYOND_MINOR
path: ~/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
- name: Run Tests
env:
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Setup Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
path: $HOME/BYOND-$BYOND_MAJOR.$BYOND_MINOR
path: ~/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }}
- name: Run Tests
env:
Expand Down
6 changes: 3 additions & 3 deletions install-byond.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
set -e
if [ -f "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/DreamMaker" ];
if [ -f ~/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/DreamMaker ];
then
echo "Using cached directory."
else
echo "Setting up BYOND."
mkdir -p "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
cd "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
mkdir -p ~/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
cd ~/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}
echo "Installing DreamMaker to $PWD"
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
unzip -o byond.zip
Expand Down
10 changes: 5 additions & 5 deletions scripts/install-spaceman-dmm.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash
set -euo pipefail

if [ -f "$HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION/$1" ];
if [ -f ~/spaceman_dmm/$SPACEMAN_DMM_VERSION/$1 ];
then
echo "Using cached $1."
cp "$HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION/$1" ~/$1
cp ~/spaceman_dmm/$SPACEMAN_DMM_VERSION/$1 ~/$1
else
wget -O ~/$1 "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/$1"
mkdir -p $HOME/spaceman_dmm
cp ~/$1 $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION
mkdir -p ~/spaceman_dmm
cp ~/$1 ~/spaceman_dmm/$SPACEMAN_DMM_VERSION
fi

chmod +x ~/$1
~/$1 --version
~/$1 --version
2 changes: 1 addition & 1 deletion test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function run_byond_tests {
if [[ "$CI" == "true" ]]; then
msg "installing BYOND"
./install-byond.sh || exit 1
source $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
source ~/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/byondsetup
fi
run_test "build map unit tests" "scripts/dm.sh -DUNIT_TEST -M$MAP_PATH baystation12.dme"
run_test "check no warnings in build" "grep ', 0 warnings' build_log.txt"
Expand Down

0 comments on commit c4a5e9d

Please sign in to comment.