Add production-ready shell features: tab completion, aliases, history search, chaining, and redirection #52
Workflow file for this run
This file contains hidden or 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
| name: Build and Test NihilistShell | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up .NET SDK | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '8.0' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y wget curl | |
| - name: Build the project | |
| run: | | |
| dotnet restore | |
| dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true -o ./publish | |
| - name: Verify the binary exists | |
| run: | | |
| if [ ! -f ./publish/NShell ]; then | |
| echo "[-] - Binary not found!" | |
| exit 1 | |
| fi | |
| echo "[+] - Binary found." | |
| - name: Clean up | |
| run: | | |
| rm -rf ./publish |