https://github.com/ardesco/nasher4gh
Github action for Nasher
https://github.com/ardesco/nasher4gh
Last synced: 4 months ago
JSON representation
Github action for Nasher
- Host: GitHub
- URL: https://github.com/ardesco/nasher4gh
- Owner: Ardesco
- License: apache-2.0
- Created: 2023-08-06T18:51:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T20:35:19.000Z (about 2 years ago)
- Last Synced: 2025-07-02T02:18:47.017Z (4 months ago)
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nasher For Github Actions
Github action to run nwn module builds using Nasher as a github action
## Run nasher4gh
This action is a GH compatible wrapper for nasher (https://github.com/squattingmonk/nasher).
Basic usage to just build your module is as below (**This will use the NWNSC compiler**):
```yaml
name: Run CI Buildon:
push:
branches:
- masterjobs:
ci_build:
runs-on: ubuntu-latest
name: NWN:EE CI Build
steps:
- name: Checkout
uses: actions/checkout@v3- name: Build module
uses: Ardesco/nasher4gh@v1
```
This will run `nasher pack --default`If you want to use the new [nwn_script_comp](https://github.com/niv/neverwinter.nim/blob/master/nwn_script_comp.nim) compiler you will need to pass in an additional argument called `-usenwnscriptcomp`:
```yaml
name: Run CI Buildon:
push:
branches:
- masterjobs:
ci_build:
runs-on: ubuntu-latest
name: NWN:EE CI Build
steps:
- name: Checkout
uses: actions/checkout@v3- name: Build module
uses: Ardesco/nasher4gh@v1
with:
args: "['pack', '--default', '-usenwnscriptcomp']"
```As you can see above the commands you pass into the container are configurable, you can pass in any options supported by nasher (see https://github.com/squattingmonk/nasher#commands).
```yaml
name: Run CI Buildon:
push:
branches:
- masterjobs:
ci_build:
runs-on: ubuntu-latest
name: NWN:EE CI Build
steps:
- name: Checkout
uses: actions/checkout@v3- name: Build module
uses: Ardesco/nasher4gh@v1
with:
args: "['compile', '--no', '--verbose']"
```
You can also modify/override default config options if you use the -option flag as shown below:```yaml
name: Run CI Buildon:
push:
branches:
- masterjobs:
ci_build:
runs-on: ubuntu-latest
name: NWN:EE CI Build
steps:
- name: Checkout
uses: actions/checkout@v3- name: Build module
uses: Ardesco/nasher4gh@v1
with:
args: "['pack', '--default', '-option', '--userName:\"Ardesco\"']"
```## Docker container source
Docker containers used by this action are created/managed via https://github.com/Ardesco/nasher4gh-images.
## License
The Dockerfile and associated scripts and documentation in this project are released under the [Apache-2.0 License](LICENSE).