fix: release workflow #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| workflow_dispatch: | |
| workflow_call: | |
| push: | |
| branches: | |
| - 'master' | |
| paths: | |
| - '.github/workflows/**' | |
| - 'src/**' | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache nimble | |
| id: cache-nimble | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nimble | |
| key: ${{ runner.os }}-nimble-v2-${{ hashFiles('*.nimble') }} | |
| - name: Setup nim | |
| uses: jiro4989/setup-nim-action@v2 | |
| with: | |
| nim-version: 2.2.0 | |
| - name: Install Packages | |
| run: nimble install -d -y | |
| - name: Build Webfisher | |
| run: nimble build -Y | |
| - name: Upload Linux artifact | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ runner.os == 'Linux' }} | |
| with: | |
| name: webfisher-linux | |
| path: webfisher | |
| - name: Upload Windows artifact | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ runner.os == 'Windows' }} | |
| with: | |
| name: webfisher-windows | |
| path: webfisher.exe | |