generated from esy-packages/template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ManasJayanth/ci-use-esy-package
CI: Use esy-package command
- Loading branch information
Showing
11 changed files
with
85 additions
and
448 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
*.sh text=auto eol=lf | ||
|
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 |
---|---|---|
@@ -1,37 +1,38 @@ | ||
name: Build and test the esy package | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
# - windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
|
||
- name: Install esy | ||
run: npm install -g @esy-nightly/esy verdaccio | ||
|
||
- name: Run end-to-end tests on the package | ||
run: bash ./.ci/steps.sh | ||
shell: bash | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: release | ||
path: package.tar.gz | ||
name: Build and test the esy package | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-13 | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install esy, verdaccio and esy-package | ||
run: npm install -g esy verdaccio esy-package@latest # to be reverted to dev | ||
|
||
- name: Run end-to-end tests on the package | ||
run: DEBUG=bale*,verdaccio* esy-package | ||
shell: bash | ||
env: | ||
SHELL: "bash.exe" # HACK!! For some weird reason, $SHELL in Github actions' Windows' bash shell doesn't set this environment variable. We rely on it to figure if path normalisation is necessary on Gitbash Windows | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: release | ||
path: package.tar.gz |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"esy": { | ||
"build": "pkg-config --libs gmp" | ||
"buildsInSource": true, | ||
"build": [ | ||
"#{os == 'windows' ? 'x86_64-w64-mingw32-':''}gcc test.c -I#{esy-gmp.install / 'include'} -L#{esy-gmp.lib} -lgmp -o test", | ||
"./test" | ||
] | ||
}, | ||
"dependencies": { | ||
"yarn-pkg-config": "*", | ||
"esy-gmp": "6.2.1000" | ||
}, | ||
"resolutions": { | ||
"yarn-pkg-config": "esy-ocaml/yarn-pkg-config#9293b15f9f0e3dcac6f86ebb1e09a2fa766289ba" | ||
"esy-gmp": "6.3.0" | ||
} | ||
} |
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,12 @@ | ||
#include <gmp.h> | ||
#include <stdlib.h> | ||
|
||
int main() { | ||
mpz_t i, j, k; | ||
mpz_init_set_str (i, "1a", 16); | ||
mpz_init (j); | ||
mpz_init (k); | ||
mpz_sqrtrem (j, k, i); | ||
if (mpz_get_si (j) != 5 || mpz_get_si (k) != 1) abort(); | ||
return 0; | ||
} |
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
Oops, something went wrong.