This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Change path in install script #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Dlang deps | |
uses: dlang-community/setup-dlang@v1 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Build | |
run: go build -v ./... | |
- name: Compile HRA and test program | |
run: | | |
scripts/install_deps.sh | |
chmod +x ./elevatorAlgorithm/hra/hall_request_assigner | |
go test -v elevatorAlgorithm/hra | |
go test -v requestSync/requestSync_test.go |