use xcode ar
and ranlib
if present
#253
Workflow file for this run
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
on: | |
pull_request: | |
workflow_call: | |
env: | |
GITHUB_TOKEN: ${{github.token}} | |
PKGX_PANTRY_PATH: ${{github.workspace}} | |
jobs: | |
integration-tests: | |
name: ${{matrix.pkg}} (${{matrix.platform.tag}}) | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os: ubuntu-latest | |
img: debian:buster-slim | |
tag: linux | |
- os: macos-latest | |
tag: mac | |
pkg: | |
- stark.com/foo | |
- toolchain.com | |
- pyapp.com/pip | |
- pyapp.com/poetry | |
- stark.com/foo@1.2.3 | |
- git-clone.com | |
- pc-cmake.com | |
- fix-machos.com | |
- version-transformer.com | |
runs-on: ${{ matrix.platform.os }} | |
container: ${{ matrix.platform.img }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pkgxdev/setup@v2 | |
- name: precache # makes it easier to read the real output | |
run: | # we have to make symlinks because deno cache doesn’t take a --ext=ts flag | |
ln -s bin/cmd/build build.ts | |
ln -s bin/cmd/test test.ts | |
pkgx deno cache *.ts | |
rm *.ts | |
- run: bin/bk build ${{matrix.pkg}} | |
- run: bin/bk test ${{matrix.pkg}} | |
- run: bin/bk audit ${{matrix.pkg}} | |
local-edit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pkgxdev/setup@v2 | |
- uses: ./.github/modify-pantry | |
- run: test $(bin/bk status) = stark.com/foo | |
- run: bin/bk build | |
- run: bin/bk test | |
- run: test $(pkgx +stark.com/foo -- stark) = not_much_u | |
- run: bin/bk audit | |
unit-tests: | |
runs-on: ubuntu-latest | |
env: | |
PKGX_PANTRY_PATH: null | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pkgxdev/dev@main | |
- run: deno test --allow-env --allow-net --ignore=.data | |
unavailable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pkgxdev/setup@v2 | |
- run: pkgx --sync # FIXME PKGX_PANTRY_PATH causes auto sync to fail | |
- name: build | |
run: | | |
set +e | |
bin/bk build unavailable.com | |
test $? -eq 2 |