Skip to content

Commit

Permalink
create artifacts action
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmoy committed Oct 25, 2023
1 parent 45a70e8 commit b41a60e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
artifacts: ${{ env.tarballs_dir }}/*.tar.gz
generateReleaseNotes: true
- name: Check Artifacts
uses: ./.github/workflows/artifacts_CI.yml
uses: ./.github/workflows/artifacts_action
- name: Publish Release
uses: ncipollo/release-action@v1
with:
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/artifacts_action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Artifacts CI
on:
workflow_dispatch:
push:
tags: ["*"] # Triggers from tags ignore the `paths` filter: https://github.com/orgs/community/discussions/26273
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1.8" # Version used with MVP
- "1.9" # Latest release
os:
- ubuntu-20.04-16core
- macos-latest-xlarge # Apple silicon
arch:
- x64
- aarch64
exclude:
- os: ubuntu-20.04-16core
arch: aarch64
- os: macos-latest-xlarge
arch: x64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Ray CLI
run: |
pip install --upgrade pip wheel
case $(uname -s) in
Linux) OS=manylinux2014;;
Darwin) OS=macosx_13_0;;
esac
ARCH=$(uname -m)
PYTHON=$(python3 --version | perl -ne '/(\d+)\.(\d+)/; print "cp$1$2-cp$1$2"')
pip install -U "ray[default] @ https://github.com/beacon-biosignals/ray/releases/latest/download/ray-2.5.1-${PYTHON}-${OS}_${ARCH}.whl" "pydantic<2"
# Verify Ray CLI works
ray --version
- name: Delete Overrides.toml
shell: julia --color=yes --project {0}
run: |
overrides_toml = joinpath(first(Base.DEPOT_PATH), "artifacts", "Overrides.toml")
isfile(overrides_toml) && rm(overrides_toml)
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: true

0 comments on commit b41a60e

Please sign in to comment.