Skip to content

Commit

Permalink
Add proper macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Aug 1, 2023
1 parent 536283a commit 5096876
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Action validation
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy: matrix: os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Jule
uses: Panquesito7/setup-jule@main
uses: Panquesito7/setup-jule@proper_mac_support
with:
version: dev
directory: .
Expand Down
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ inputs:
runs:
using: "composite"
steps:
- name: Install Homebrew
shell: bash
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y wget tar
brew update
brew install -y wget jq
- name: Adjust directory
shell: bash
run: |
Expand Down Expand Up @@ -62,7 +66,7 @@ runs:
shell: bash
run: |
cd ${{ inputs.directory }}/julec-${{ inputs.version }}
wget https://raw.githubusercontent.com/julelang/julec-ir/main/src/linux-${{ inputs.architecture }}.cpp -O ir.cpp
wget https://raw.githubusercontent.com/julelang/julec-ir/main/src/$( [[ "$OSTYPE" == "darwin"* ]] && echo darwin || echo linux)-${{ inputs.architecture }}.cpp -O ir.cpp
- name: Compile JuleC
shell: bash
run: |
Expand Down

0 comments on commit 5096876

Please sign in to comment.