This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '20[0-9][0-9].[0-9][0-9].[0-9][0-9]'
|
||||||
|
- '20[0-9][0-9].[0-9][0-9].[0-9][0-9].[0-9]+'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
code: read
|
||||||
|
releases: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ffmini_macos_arm64
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
- name: Install build tools
|
||||||
|
run: mise install
|
||||||
|
- name: Build extension
|
||||||
|
run: |
|
||||||
|
mise exec -- meson setup _build -Dpack=true -Dpackdir=dist
|
||||||
|
mise exec -- meson compile -C _build
|
||||||
|
mise exec -- meson install -C _build
|
||||||
|
- name: Publish release
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
run: |
|
||||||
|
export XDG_CONFIG_HOME="$RUNNER_TEMP/tea"
|
||||||
|
tea login add --name actions --url "${{ gitea.server_url }}" --token "$GITEA_TOKEN" --no-version-check
|
||||||
|
tea releases create --login actions --repo "${{ gitea.repository }}" --tag "${{ gitea.ref_name }}" --target "${{ gitea.sha }}" --title "${{ gitea.ref_name }}" --asset dist/nightthemeswitcher@romainvigier.fr.zip
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[tools]
|
||||||
|
meson = "1.12.0"
|
||||||
|
ninja = "1.13.2"
|
||||||
@@ -343,7 +343,7 @@ export class Timer extends GObject.Object {
|
|||||||
|
|
||||||
// Calculations from https://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html
|
// Calculations from https://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html
|
||||||
const dtNow = GLib.DateTime.new_now_local();
|
const dtNow = GLib.DateTime.new_now_local();
|
||||||
const dtZero = GLib.DateTime.new_utc(1900, 1, 1, 0, 0, 0);
|
const dtZero = GLib.DateTime.new_local(1900, 1, 1, 0, 0, 0);
|
||||||
|
|
||||||
const timeSpan = dtNow.difference(dtZero);
|
const timeSpan = dtNow.difference(dtZero);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user