-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2de526
commit 8c37efa
Showing
3 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build project check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Checkout war3js_unsafe repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: kirill-782/war3js_unsafe | ||
path: unsafe | ||
|
||
- name: Install unsafe dependencies | ||
run: npm install | ||
working-directory: ./unsafe | ||
|
||
- name: Build unsafe | ||
run: npm run build | ||
working-directory: ./unsafe | ||
|
||
- name: Checkout current repository | ||
uses: actions/checkout@v4 | ||
with: | ||
path: bootstrap | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ./bootstrap | ||
|
||
- name: Bundle js file | ||
run: npm run bundle | ||
working-directory: ./bootstrap | ||
|
||
- name: Bundle types | ||
run: npm run typesgen | ||
working-directory: ./bootstrap | ||
|
||
- name: Upload bootstrap.js | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bootstrap.js | ||
path: ./bootstrap/build/esbuild/bootstrap.js | ||
|
||
- name: Upload natives.d.ts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: natives.js | ||
path: ./bootstrap/build/fullTypes/natives.d.ts | ||
|
||
- name: Upload bootstrap.d.ts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bootstrap.d.ts | ||
path: ./bootstrap/build/fullTypes/bootstrap.d.ts |