From 0862632600e8d3cf170d31eda99ce17232f981c7 Mon Sep 17 00:00:00 2001 From: "Florian RICHER (MrDev023)" Date: Sat, 24 Jul 2021 14:45:47 +0200 Subject: [PATCH] Try add mac os --- .github/workflows/rust.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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