Skip to content

Commit

Permalink
Update rust.yml - hope it works
Browse files Browse the repository at this point in the history
I am dumb with runners
  • Loading branch information
alexjsteffen authored Jun 27, 2024
1 parent e6e1dc3 commit 5398238
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
arch: [x64, arm64]
include:
- os: macos-latest
- os: ubuntu-latest
arch: x64
- os: ubuntu-22.04
arch: x64
- os: macos-latest
arch: arm64
- os: windows-latest
- os: macos-14
arch: x64
- os: ubuntu-latest
- os: windows-latest
arch: x64

steps:
Expand All @@ -33,27 +33,20 @@ jobs:

- name: Install dependencies
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
python -m pip install --upgrade pip
pip install -r requirements.txt
else
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
python -m unittest discover
else
python3 -m unittest discover
run: python -m unittest discover

- name: Archive results
if: success()
run: |
tar -czf results.tar.gz ./*
shell: bash

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: test-results
name: test-results-${{ matrix.os }}-${{ matrix.arch }}
path: ttsrs.tar.gz

0 comments on commit 5398238

Please sign in to comment.