Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Add/deps (#9)
Browse files Browse the repository at this point in the history
* Add docs, project resources and install deps script

* Remove submodule

* rm deps

* Add deps

* Edit readme

* Remove mistake from main.go

* Change workflow to build hra
  • Loading branch information
tordnat authored Mar 12, 2024
1 parent 4b11a85 commit 2e132b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Compile hall_request_assigner
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd
run: scripts/install_deps.sh

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ Snippets:
`sudo apt install golang`
`sudo apt install dmd`

You can also use the installation script in the `scripts/` folder in the root directory of this repository:
To build and install the `hall_request_assigner` run the following commands:
`chmod +x scripts/install_deps.sh`
`./scripts/install_deps.sh`


> Note: If DMD is not in apt sources, visit https://dlang.org/download.html for dmd download
Expand Down
7 changes: 2 additions & 5 deletions scripts/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/bin/bash

echo "Installing dependencies"
sudo apt install golang
sudo apt install dmd

HRA_INSTALL_PATH="elevatorAlgorithm/hra/"
echo "Building project and moving hall_request_assigner to workspace root"
echo "Building project and moving hall_request_assigner to $HRA_INSTALL_PATH"

chmod +x Project-resources/cost_fns/hall_request_assigner/build.sh
Project-resources/cost_fns/hall_request_assigner/build.sh
sudo cp Project-resources/cost_fns/hall_request_assigner $HRA_INSTALL_PATH

0 comments on commit 2e132b6

Please sign in to comment.