Try add mac os
This commit is contained in:
parent
02dc2cf711
commit
0862632600
1 changed files with 21 additions and 0 deletions
21
.github/workflows/rust.yml
vendored
21
.github/workflows/rust.yml
vendored
|
@ -51,3 +51,24 @@ jobs:
|
|||
with:
|
||||
name: windows
|
||||
path: target/release/autoconfig.exe
|
||||
|
||||
macos_job:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Cache build
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/target
|
||||
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ hashFiles('**/Cargo.lock') }}
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
- run: cargo build --release
|
||||
- run: cargo test --release
|
||||
- name: Upload build file
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: macos
|
||||
path: target/release/autoconfig
|
||||
|
|
Reference in a new issue