Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ permissions:
jobs:
smoke:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Smoke test bundles
run: scripts/smoke.sh
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ on:
- 'v*'

permissions:
contents: write
id-token: write
contents: read

jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Check tag matches package.json version
run: |
test "${GITHUB_REF_NAME#v}" = "$(node -p "require('./package.json').version")" || { echo "Tag neodpovídá verzi v package.json"; exit 1; }

- name: Setup Node.js
uses: actions/setup-node@v6
with:
Expand All @@ -32,10 +37,10 @@ jobs:
- name: Build binaries
run: |
mkdir -p dist
TARGETS=$(node -p "require('./package.json').pkg.targets.join(',')")
echo "pkg targets: $TARGETS"
for util in asm80 asm80-link asm80-ar asm80-run; do
npx @yao-pkg/pkg ${util}.js \
--targets node20-win-x64,node20-linux-x64,node20-macos-x64,node20-macos-arm64 \
--out-path dist/
npx pkg "${util}.js" --targets "$TARGETS" --out-path dist/
done

- name: List dist/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Příkazové nástroje ASM80 – assembler, linker, archivátor knihoven a emul
npm i -g @asm80/cli
```

Vyžaduje Node.js 18 nebo novější. Samostatné binárky (bez nutnosti instalovat Node.js) pro Windows, Linux a macOS jsou přiložené ke [GitHub Releases](https://github.com/asm80/asm80-cli/releases).
Vyžaduje Node.js 22 nebo novější (CI testuje Node 22 a 24). Samostatné binárky (bez nutnosti instalovat Node.js, obsahují vestavěný Node.js 24) pro Windows, Linux a macOS jsou přiložené ke [GitHub Releases](https://github.com/asm80/asm80-cli/releases).

## Použití

Expand Down
Loading
Loading