Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ThinLTO #75

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
467360d
Use ThinLTO
FireMasterK Jan 14, 2021
2472fd5
Add container CI release
Perflyst Jan 16, 2021
50a65c6
Fix DASH playback bug.
Rjevski Jan 17, 2021
8b4d490
add ui for searching
azhao12345 Jan 3, 2021
b1d45fd
Rename release.yml to container-release.yml
Perflyst Jan 20, 2021
ca82a69
Fix container build
Perflyst Jan 21, 2021
0e58c7f
Build latest only on master, add commit sha tag
Perflyst Jan 21, 2021
cb2f328
Remove image digest output
Perflyst Jan 21, 2021
5eaad2a
Expire sha images after 6 weeks
Perflyst Jan 21, 2021
ca5a110
different steps depending on event.
FireMasterK Jan 22, 2021
fd6ed73
build image daily at 0:00 GMT
FireMasterK Jan 22, 2021
0e5cd14
Make invidious use all the translation files
TheFrenchGhosty Jan 23, 2021
6e8f795
Translations update from Weblate (#1696)
weblate Jan 23, 2021
f8dbf93
Change some stuff done to the french translation in #1696
TheFrenchGhosty Jan 23, 2021
10a3e74
Add config environment variables
saltycrys Jan 23, 2021
832bc04
Make config a constant
saltycrys Jan 23, 2021
1baea6a
Only start refresh jobs when necessary
saltycrys Jan 23, 2021
a592031
remove https from channel thumbnail in search
azhao12345 Jan 27, 2021
870d4b0
Remove container release on PR
Perflyst Jan 28, 2021
30391c9
install crystal 35.1 in ci
azhao12345 Jan 29, 2021
b084192
Bump videojs and fix webworker
azhao12345 Jan 27, 2021
2d5b80b
Update Greek translation
Jan 29, 2021
4b6cf25
Update Hungarian translation
comradekingu Jan 29, 2021
d2aab31
Update Finnish translation
Jan 29, 2021
a27db2d
Update Indonesian translation
comradekingu Jan 29, 2021
a45231a
Enable the Finish translation since it's now translated at more than 80%
TheFrenchGhosty Jan 30, 2021
e205d2a
Unrequire `logger`
saltycrys Jan 31, 2021
3422ceb
Update Japanese translation
Jan 31, 2021
7f5fa73
Update Japanese translation
Jan 31, 2021
4403643
Adjust routes
saltycrys Feb 2, 2021
63f858a
Update code for Crystal 0.36.0
saltycrys Jan 31, 2021
47b0f53
Update to Crystal 0.36.0
saltycrys Jan 31, 2021
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

- name: Install Crystal
uses: oprypin/[email protected]
with:
crystal: 0.36.0

- name: Cache Shards
uses: actions/cache@v2
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and release container

on:
push:
branches:
- "master"
schedule:
- cron: 0 0 * * *

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to registry
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push for Push Event
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v2
with:
context: .
file: docker/Dockerfile
labels: quay.expires-after=12w
push: true
tags: quay.io/invidious/invidious:${{ github.sha }},quay.io/invidious/invidious:latest
3 changes: 3 additions & 0 deletions assets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -628,3 +628,6 @@ body.dark-theme {
}
}

#filters {
display: none;
}
2 changes: 1 addition & 1 deletion assets/css/video-js.min.css

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions assets/js/global.js

This file was deleted.

5 changes: 5 additions & 0 deletions assets/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ var options = {
'playbackRateMenuButton',
'fullscreenToggle'
]
},
html5: {
hls: {
overrideNative: true
}
}
}

Expand Down
13 changes: 13 additions & 0 deletions assets/js/search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function toggle_comments(event) {
var target = event.target;
var body = document.getElementById('filters');
if (body.style.display === 'flex') {
target.innerHTML = '[ + ]';
body.style.display = 'none';
} else {
target.innerHTML = '[ - ]';
body.style.display = 'flex';
}
}

document.getElementById('togglefilters').onclick = toggle_comments;
25 changes: 15 additions & 10 deletions assets/js/video.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM crystallang/crystal:0.35.1-alpine AS builder
FROM crystallang/crystal:0.36.0-alpine AS builder
RUN apk add --no-cache curl sqlite-static
WORKDIR /invidious
COPY ./shard.yml ./shard.yml
Expand All @@ -10,7 +10,7 @@ COPY ./src/ ./src/
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
COPY ./.git/ ./.git/
RUN crystal build ./src/invidious.cr \
--static --warnings all \
--static --lto=thin --warnings all \
--link-flags "-lxml2 -llzma"

FROM alpine:latest
Expand Down
Loading