| 1 | name: "Build" |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - master |
| 6 | |
| 7 | jobs: |
| 8 | publish-nightly: |
| 9 | strategy: |
| 10 | fail-fast: false |
| 11 | matrix: |
| 12 | platform: [windows-latest] |
| 13 | |
| 14 | runs-on: ${{ matrix.platform }} |
| 15 | steps: |
| 16 | - name: Checkout repository |
| 17 | uses: actions/checkout@v3 |
| 18 | |
| 19 | - name: Rust setup |
| 20 | uses: dtolnay/rust-toolchain@stable |
| 21 | |
| 22 | - name: Rust cache |
| 23 | uses: swatinem/rust-cache@v2 |
| 24 | with: |
| 25 | workspaces: './src-tauri -> target' |
| 26 | |
| 27 | - name: setup node |
| 28 | uses: actions/setup-node@main |
| 29 | with: |
| 30 | node-version: 'lts/*' |
| 31 | cache: 'yarn' |
| 32 | |
| 33 | - name: Install frontend dependencies |
| 34 | run: yarn install |
| 35 | |
| 36 | - name: Build app |
| 37 | run: yarn tauri build |
| 38 | |
| 39 | - name: Produce artifacts |
| 40 | uses: actions/upload-artifact@v3 |
| 41 | with: |
| 42 | name: "svara-nightly.${{github.run_number}}" |
| 43 | path: "dist/" |
| 44 | attempt-test-build: |
| 45 | strategy: |
| 46 | fail-fast: false |
| 47 | matrix: |
| 48 | platform: [windows-latest] |
| 49 | |
| 50 | runs-on: ${{ matrix.platform }} |
| 51 | steps: |
| 52 | - name: Checkout repository |
| 53 | uses: actions/checkout@v3 |
| 54 | |
| 55 | - name: Rust setup |
| 56 | uses: dtolnay/rust-toolchain@stable |
| 57 | |
| 58 | - name: Rust cache |
| 59 | uses: swatinem/rust-cache@v2 |
| 60 | with: |
| 61 | workspaces: './src-tauri -> target' |
| 62 | |
| 63 | - name: setup node |
| 64 | uses: actions/setup-node@v3 |
| 65 | with: |
| 66 | node-version: 'lts/*' |
| 67 | cache: 'yarn' |
| 68 | |
| 69 | - name: Install frontend dependencies |
| 70 | run: yarn install |
| 71 | |
| 72 | - name: Build the app |
| 73 | uses: tauri-apps/tauri-action@v0 |
| 74 | env: |
| 75 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 76 | with: |
| 77 | tagName: v__VERSION__-test # the action automatically replaces \_\_VERSION\_\_ with the app version |
| 78 | releaseName: "Svara v__VERSION__-test" |
| 79 | releaseBody: | |
| 80 | Please refer to [the contribution guidelines](https://github.com/setoelkahfi/svara/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports. |
| 81 | |
| 82 | ### *TEST BUILD NOT PRODUCTION READY* |
| 83 | releaseDraft: true |
| 84 | prerelease: true |
| 85 | includeDebug: true |
| 86 | includeRelease: false |
| 87 | publish-tauri: |
| 88 | strategy: |
| 89 | fail-fast: false |
| 90 | matrix: |
| 91 | platform: [windows-latest] |
| 92 | |
| 93 | runs-on: ${{ matrix.platform }} |
| 94 | steps: |
| 95 | - name: Checkout repository |
| 96 | uses: actions/checkout@v3 |
| 97 | |
| 98 | - name: Rust setup |
| 99 | uses: dtolnay/rust-toolchain@stable |
| 100 | |
| 101 | - name: Rust cache |
| 102 | uses: swatinem/rust-cache@v2 |
| 103 | with: |
| 104 | workspaces: './src-tauri -> target' |
| 105 | |
| 106 | - name: setup node |
| 107 | uses: actions/setup-node@v3 |
| 108 | with: |
| 109 | node-version: 'lts/*' |
| 110 | cache: 'yarn' |
| 111 | |
| 112 | - name: Install frontend dependencies |
| 113 | run: yarn install |
| 114 | |
| 115 | - name: Build the app |
| 116 | uses: tauri-apps/tauri-action@v0 |
| 117 | env: |
| 118 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 119 | with: |
| 120 | tagName: v__VERSION__-alpha # the action automatically replaces \_\_VERSION\_\_ with the app version |
| 121 | releaseName: "Svara v__VERSION__-alpha" |
| 122 | releaseBody: | |
| 123 | Please refer to [the contribution guidelines](https://github.com/setoelkahfi/svara/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports. |
| 124 | |
| 125 | ### *Will have bugs/missing/incomplete features.* |
| 126 | |
| 127 | ## What's Changed |
| 128 | - |
| 129 | releaseDraft: true |
| 130 | prerelease: true |
| 131 | includeDebug: false |
| 132 | includeRelease: true |