diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..4ee2903 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,40 @@ +name: Build + +on: + push: + paths-ignore: + - README.md + - .gitignore + - LICENSE + - run.sh + pull_request: + paths-ignore: + - README.md + - .gitignore + - LICENSE + - run.sh + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + + - name: Build + run: cargo build --verbose --release + + - name: Run tests + run: cargo test --verbose + + # Publish flow + # - name: cargo login + # run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }} + + # - name: "cargo release publish" + # run: cargo release publish --workspace --all-features --allow-branch HEAD --no-confirm --no-verify --execute \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..9ef941b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "spotify-player-quickauth" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..065c44e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "spotify-player-quickauth" +version = "0.1.0" +edition = "2021" + +[dependencies]