-
-
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.
* push up some prelim tests * push up some prelim tests 2 * push up some prelim tests 3 * first pass on only emulate if needed * arch mismatch tests * arch mismatch tests 2 * arch mismatch tests 3 * arm native test * arm native test 2 * readme * release tag
- Loading branch information
Showing
9 changed files
with
142 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ARMed Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
basic-arm-test: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout action code | ||
uses: actions/checkout@v3 | ||
- name: Run Pkg Action | ||
uses: ./ | ||
with: | ||
entrypoint: bin/test | ||
upload: false | ||
- name: Test Bin | ||
run: | | ||
chmod +x dist/@lando/pkg-action | ||
dist/@lando/pkg-action --version | ||
file dist/@lando/pkg-action | grep "Mach-O 64-bit executable arm64" | ||
basic-cross-os-armed-tests: | ||
runs-on: ${{ matrix.runner }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: | ||
- macos-14 | ||
- ubuntu-22.04 | ||
os: | ||
- linux | ||
- macos | ||
- win | ||
|
||
steps: | ||
- name: Checkout action code | ||
uses: actions/checkout@v3 | ||
- name: Run Pkg Action | ||
uses: ./ | ||
with: | ||
entrypoint: bin/test | ||
arch: arm64 | ||
os: ${{ matrix.os }} | ||
upload: false |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
basic-func-test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout action code | ||
uses: actions/checkout@v3 | ||
|
@@ -21,8 +21,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-11 | ||
- ubuntu-20.04 | ||
- macos-13 | ||
- macos-14 | ||
- ubuntu-22.04 | ||
- windows-2022 | ||
steps: | ||
- name: Checkout action code | ||
|
@@ -35,7 +36,7 @@ jobs: | |
upload: false | ||
|
||
basic-cross-everything-test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -51,7 +52,7 @@ jobs: | |
pkg: | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "@yao-pkg/pkg@5.10.0" | ||
- "@yao-pkg/pkg@5.11.5" | ||
steps: | ||
- name: Checkout action code | ||
uses: actions/checkout@v3 | ||
|
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ jobs: | |
- name: Prepare release | ||
uses: lando/prepare-release-action@v2 | ||
with: | ||
sync-tags: v4 | ||
sync-tags: v5 |
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,3 +1,13 @@ | ||
## v5.0.0 - [March 14, 2023](https://github.com/lando/pkg-action/releases/tag/v5.0.0) | ||
|
||
### **BREAKING CHANGES** | ||
|
||
* Added support for `node20` | ||
* Changed default `node` version to `node20` | ||
* Changed default `arch` to `${{ runner.arch }}` | ||
* Improved `arch` behavior so emulation is only used if needed | ||
* Updated default `pkg` package to `@yao-pkg/[email protected]` since `vercel/pkg` is **DEPRECATED** | ||
|
||
## v4.0.0 - [December 4, 2023](https://github.com/lando/pkg-action/releases/tag/v4.0.0) | ||
|
||
### **BREAKING CHANGES** | ||
|
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,8 +1,8 @@ | ||
# Pkg Action | ||
|
||
This is a GitHub action that allows you to "compile" node projects with [pkg](https://github.com/vercel/pkg). It supports: | ||
This is a GitHub action that allows you to "compile" node projects with [@yao-pkg/pkg](https://github.com/yao-pkg/pkg). It supports: | ||
|
||
* All `pkg` supported node versions | ||
* All `@yao-pkg/pkg` supported node versions | ||
* `x64|amd64` and `aarch64|arm64` | ||
* `macos|linux|windows`. | ||
|
||
|
@@ -29,12 +29,12 @@ These keys are set to sane defaults but can be modified as needed. | |
|
||
| Name | Description | Default | Example | | ||
|---|---|---|---| | ||
| `arch` | The architecture to build for. | `amd64` | `x64` \| `amd64` \| `aarch64` \| `arm64` | | ||
| `arch` | The architecture to build for. | `${{ runner.arch }}` | `x64` \| `amd64` \| `aarch64` \| `arm64` | | ||
| `config` | The config file to use. | `package.json` | `config.json` | | ||
| `node-version` | The node version to package with. | `16` | `8` \| `10` \| `12` \| `14` \| `16` | | ||
| `node-version` | The node version to package with. | `20` | `8` \| `10` \| `12` \| `14` \| `16` \| `18` \| `20` | | ||
| `options` | Additional options and flags to pass into pkg. | `null` | Additional [pkg options](https://github.com/vercel/pkg#usage) | | ||
| `os` | The operating system to build for. | `${{ runner.os }}` | `linux` \| `macos` \| `win` | | ||
| `pkg` | The `pkg` package` to use. | `pkg@5.8.1` | `latest` | | ||
| `pkg` | The `pkg` package` to use. | `@yao-pkg/pkg@5.11.5` | `[email protected]` | | ||
| `upload` | Upload the artifacts. Useful if you need to grab them for downstream for things like code signing. | `true` | `false` \| `true` | | ||
|
||
## Outputs | ||
|
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.