Skip to content

Commit

Permalink
Merge pull request #346 from openworm/development
Browse files Browse the repository at this point in the history
More fixes for windows scripts
  • Loading branch information
pgleeson committed May 8, 2024
2 parents 4de9071 + 0ce2ab6 commit a24bdec
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image Test Build - Intel drivers

on:
push:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]
pull_request:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]

jobs:

Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build the Docker image
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-image-quickrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image Test - quick

on:
push:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]
pull_request:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]

jobs:

Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
chmod a+w output/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image Test Build

on:
push:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]
pull_request:
branches: [ master, dev* ]
branches: [ master, dev*, test* ]

jobs:

Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
chmod a+w output/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run the Docker image
run: |
Expand Down
5 changes: 3 additions & 2 deletions run-shell-only.cmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
SET OW_OUT_DIR=/home/ow/shared
SET HOST_OUT_DIR=%~dp0
SET HOST_OUT_DIR=%~dps0
@SET /P version=<VERSION

docker run -it ^
--name openworm ^
-e OW_OUT_DIR=%OW_OUT_DIR% ^
--privileged ^
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
openworm/openworm:0.9.3 ^
openworm/openworm:%version% ^
/bin/bash
5 changes: 3 additions & 2 deletions run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
setlocal

set OW_OUT_DIR=/home/ow/shared
set HOST_OUT_DIR=%~dp0
set HOST_OUT_DIR=%~dps0
@SET /P version=<VERSION

:GETOPTS
if /i "%1" == "-d" set DURATION=%2 & shift
Expand All @@ -20,7 +21,7 @@ docker run -d ^
-e DURATION=%DURATION% ^
--privileged ^
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
openworm/openworm:0.9.3 ^
openworm/openworm:%version% ^
/bin/bash -c "python master_openworm.py"

docker logs -f openworm
Expand Down

0 comments on commit a24bdec

Please sign in to comment.