Skip to content

Commit

Permalink
attempt to validate bottles when uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 16, 2025
1 parent 484eeba commit e81478e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function bottle(newVersion: string): Promise<Bottle[]> {
// Save the binary to a file
await Deno.writeFile(binaryFileName, uint8Array)

// Build the directory structure
// Build the directory structure
const cellarPath = `pkgx/${newVersion}`
await run({ cmd: ["mkdir", "-p", `${cellarPath}/bin`] })

Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/validate.bottles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: validate bottles

on:
workflow_dispatch:
release:
types:
- published
- edited

jobs:
smoke:
runs-on: ${{ matrix.x.os }}
strategy:
matrix:
x:
- os: ubuntu-latest
- os: ubuntu-latest
container: ubuntu:focal
- os: macos-latest
container: ${{ matrix.x.container }}
steps:
- uses: actions/checkout@v4
- uses: Homebrew/actions/setup-homebrew@master
- run: brew install ./pkgx.rb
- run: brew test pkgx
- run: pkgx semverator satisfies ^1 1.0.0

0 comments on commit e81478e

Please sign in to comment.