Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🧪 Snap Builds

on:
push:
branches: '*'
pull_request:
branches: '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4

- uses: snapcore/action-build@v1
id: build

- uses: anchore/scan-action@v6
id: scan

- uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
# Plugs and Slots declarations to override default denial (requires store assertion to publish)
# plugs: ./plug-declaration.json
# slots: ./slot-declaration.json
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Join us on [Discord](https://aka.ms/dotnet-discord) in the `#monovm` channel:

Public CI: [![Azure Pipelines](https://dev.azure.com/dnceng/public/_apis/build/status/mono/mono-ci?branchName=main)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=952&branchName=main)

[![🧪 Snap Builds](https://github.com/kz6fittycent/mono/actions/workflows/test-snap-can-build.yml/badge.svg)](https://github.com/kz6fittycent/mono/actions/workflows/test-snap-can-build.yml)

Legacy Jenkins CI (no longer available publicly):

| OS | Architecture | Status |
Expand Down Expand Up @@ -133,6 +135,15 @@ You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.


[![mono](https://snapcraft.io//mono/badge.svg)](https://snapcraft.io/mono)

Install the Snap:
-----------------

sudo snap install mono


Using Mono
==========

Expand Down
35 changes: 35 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: mono
adopt-info: mono
summary: Mono is a software platform
description: |
Mono is a software platform designed to allow developers to easily create cross platform applications. It is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
license: MIT
base: core20
grade: stable
confinement: strict

apps:
mono:
command: usr/bin/mono
plugs:
- home

parts:
mono:
source: https://github.com/mono/mono
source-type: git
plugin: autotools
autotools-configure-parameters:
- --prefix=/usr/
build-packages:
- autoconf
- libtool-bin
- build-essential
- gettext
- cmake
- python3
- curl

override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"