diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 24ea1d6..b1f5bfc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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