Skip to content

Commit

Permalink
Add macOS support (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Feb 19, 2024
1 parent 9d4389b commit 18895b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, oracle-aarch64]
os: [ubuntu-latest, macos-latest, macos-14, oracle-aarch64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, oracle-aarch64]
os: [ubuntu-latest, macos-latest, macos-14, oracle-aarch64]
steps:
- uses: actions/checkout@v4
- name: Should not be on path
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Set up your GitHub Actions workflow with a specific version of [rye](https://rye

## Limitations

1. Currently only linux is supported see [issue #10](https://github.com/eifinger/setup-rye/issues/10)
1. Currently only Linux and macOS is supported see [issue #10](https://github.com/eifinger/setup-rye/issues/10)

## Usage

Expand Down
2 changes: 1 addition & 1 deletion dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/setup/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/setup-rye.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import {
REPO,
validateCheckSum,
getArch,
isknownVersion
isknownVersion,
IS_MAC
} from './utils'
import {KNOWN_CHECKSUMS} from './checksums'

async function run(): Promise<void> {
const platform = 'linux'
const platform = IS_MAC ? 'macos' : 'linux'
const arch = getArch()
const versionInput = core.getInput('version')
const checkSum = core.getInput('checksum')
Expand Down

0 comments on commit 18895b4

Please sign in to comment.