Skip to content

Commit

Permalink
setup CI through Github action (#2)
Browse files Browse the repository at this point in the history
Revert some changes brought in through earlier commits
  • Loading branch information
vrsandeep authored Dec 14, 2024
1 parent 8ba3aac commit c5f4ac3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Build

on:
repository_dispatch:
workflow_dispatch:
pull_request:
types: ['opened', 'reopened', 'synchronize', 'ready_for_review']

jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest
container:
image: crystallang/crystal:1.0.0-alpine

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
run: apk add --no-cache yarn yaml-static sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev
- name: Build
Expand All @@ -22,10 +21,15 @@ jobs:
run: make check
- name: Run tests
run: make test
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: mango
path: mango
- name: build arm64v8 object file
run: make arm64v8 || make arm64v8
- name: Upload object files
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: object files
path: ./*.o
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Publish to Dockerhub
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: hkalexling/mango
name: vrsandeep/mango
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest,${{ env.RELEASE_VERSION }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ public/webfonts
.idea/
.tool-versions
data/
**/.DS_STORE
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM crystallang/crystal:1.0.0-alpine AS builder

WORKDIR /Mango

COPY . .
RUN apk add --no-cache yarn yaml-static sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev

COPY . .

RUN make static || make static

FROM library/alpine
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
![banner](./public/img/banner-paddings.png)

# Notes

The original repo at https://github.com/getmango/Mango has stopped accepting new PRs.

This repo will try to bring in some updates to keep the project alive for a little while longer.

# Mango

[![Patreon](https://img.shields.io/badge/support-patreon-brightgreen?link=https://www.patreon.com/hkalexling)](https://www.patreon.com/hkalexling) ![Build](https://github.com/hkalexling/Mango/workflows/Build/badge.svg) [![Gitter](https://badges.gitter.im/mango-cr/mango.svg)](https://gitter.im/mango-cr/mango?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Discord](https://img.shields.io/discord/855633663425118228?label=discord)](http://discord.com/invite/ezKtacCp9Q)
Expand Down
8 changes: 4 additions & 4 deletions public/js/plugin-download.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ const component = () => {

return {
key: k,
type: type,
values: values,
type,
values,
};
});
},
Expand All @@ -340,8 +340,8 @@ const component = () => {
value = value ? Date.parse(value).toString() : '';
return {
key: i.getAttribute('data-filter-key'),
value: value,
type: type,
value,
type,
};
});
},
Expand Down

0 comments on commit c5f4ac3

Please sign in to comment.