diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..2dced7c --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,35 @@ +on: + pull_request: + push: + branches: + - version-0.2 + - wasm + +name: Build + +permissions: + contents: write + +jobs: + build: + name: Release Build + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libgtk-3-dev libjavascriptcoregtk-4.0-dev libsoup2.4-dev libjavascriptcoregtk-4.0-dev libgdk3.0-cil-dev libgdk-pixbuf-2.0-dev libpango1.0-dev libwebkit2gtk-4.0-dev + if: runner.os == 'linux' + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Build + run: cargo build --release + - uses: actions/upload-artifact@v4 + with: + name: cuentitos-${{ matrix.runs-on }} + path: target/release/cuentitos