44 workflow_dispatch :
55 pull_request :
66 push :
7- branches : [ master, develop, ]
7+ branches : [ master, develop ]
88 # branches: [ master, develop ]
99 # paths:
1010 # - 'source/ports/rs_port/Cargo.toml'
@@ -24,36 +24,32 @@ jobs:
2424 strategy :
2525 fail-fast : false
2626 matrix :
27- os : [macos-latest, ubuntu -latest]
27+ os : [ubuntu-latest, macos-latest, windows -latest]
2828 steps :
2929 - name : Check out the repo
3030 uses : actions/checkout@v4
3131 with :
3232 fetch-depth : 0
33- - name : Export XCode SDK Root
34- if : matrix.os == 'macos-latest'
35- run : echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
36- - name : install metacall (${{ matrix.os }})
37- if : matrix.os != 'windows-latest'
33+ - name : Install MetaCall (${{ matrix.os }})
34+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
3835 run : curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
36+ - name : Install MetaCall (${{ matrix.os }})
37+ if : matrix.os == 'windows-latest'
38+ run : powershell -NoProfile -ExecutionPolicy Unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))"
3939 - name : Install Rust
4040 uses : actions-rs/toolchain@v1
4141 with :
4242 toolchain : stable
4343 override : true
44- - name : Set up Rust
45- uses : actions-rs/toolchain@v1
46- with :
47- toolchain : stable
48- override : true
49- - name : Build and test the port
44+ - name : Build and Test the Rust Port
5045 working-directory : source/ports/rs_port
5146 run : |
5247 cargo build --verbose
5348 cargo test --verbose
5449 # release:
5550 # name: Release Rust Port
5651 # runs-on: ubuntu-latest
52+ # needs: test
5753 # steps:
5854 # - name: Check out the repo
5955 # uses: actions/checkout@v4
0 commit comments