Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from pl-strflt/test-all-oses
Browse files Browse the repository at this point in the history
feat: test on all OSes
  • Loading branch information
galargh authored Mar 13, 2023
2 parents 6fd1094 + 710d76f commit 7c71b87
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Test
on: [push]
on:
push:
branches:
- master
pull_request:
jobs:
Use-Action:
name: Use Action
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.2] - 2023-03-03
### Fixed
- use sed instead of grep on macos
- use $HOME instead of realpath because the later is not available on macos

## [1.1.1] - 2023-03-03
### Fixed
- how sccache is downloaded on macos
Expand Down
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ runs:
name: Checking Rust version
run: |
version="$(rustc -vV)"
echo "release=$(grep -oP 'release: \K.+' <<< "$version")" >> $GITHUB_OUTPUT
echo "host=$(grep -oP 'host: \K.+' <<< "$version")" >> $GITHUB_OUTPUT
echo "commit-hash=$(grep -oP 'commit-hash: \K.{0,12}' <<< "$version")" >> $GITHUB_OUTPUT
echo "release=$(sed -En 's/^release: (.+)/\1/p' <<< "$version")" >> $GITHUB_OUTPUT
echo "host=$(sed -En 's/^host: (.+)/\1/p' <<< "$version")" >> $GITHUB_OUTPUT
echo "commit-hash=$(sed -En 's/^commit-hash: (.{0,12}).*/\1/p' <<< "$version")" >> $GITHUB_OUTPUT
shell: bash
- id: platform
name: Defining Platform to download
Expand Down Expand Up @@ -69,7 +69,7 @@ runs:
echo 'RUSTC_WRAPPER=sccache' >> $GITHUB_ENV
fi
if [ -z '${{ env.SCCACHE_DIR }}' ]; then
echo "SCCACHE_DIR=$(realpath ~/.cache/sccache)" >> $GITHUB_ENV
echo "SCCACHE_DIR=$HOME/.cache/sccache" >> $GITHUB_ENV
fi
shell: bash
- name: Deploying cache
Expand Down

0 comments on commit 7c71b87

Please sign in to comment.