Skip to content

Commit bb998e3

Browse files
committed
Merge branch 'dev'
2 parents cd4ba8f + 4d33223 commit bb998e3

344 files changed

Lines changed: 21961 additions & 21258 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/aur.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Setup
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/download-artifact@v2
10+
- uses: actions/download-artifact@v3
1111
with:
1212
path: ./
1313

.github/workflows/build.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Build
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
setup:
7+
name: Setup
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout project
11+
id: checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Cache src
17+
id: cache-src
18+
uses: actions/upload-artifact@v3
19+
with:
20+
name: repo
21+
path: ./*
22+
23+
build_arm64v8:
24+
needs: setup
25+
name: build for arm64v8
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/download-artifact@v3
29+
with:
30+
name: repo
31+
path: ./
32+
33+
- name: Setup
34+
run: |
35+
chmod +wr . -R
36+
chmod +x ./**/*.sh
37+
chmod +x ./**/*.pl
38+
39+
- name: Set up QEMU
40+
uses: docker/setup-qemu-action@v2
41+
with:
42+
platforms: linux/arm64
43+
44+
- name: Set up Docker Buildx
45+
id: docker_buildx
46+
uses: docker/setup-buildx-action@v2
47+
48+
- name: Build in Docker
49+
id: build
50+
run: |
51+
docker buildx build --platform linux/arm64 --builder ${{ steps.docker_buildx.outputs.name}} -t figma-linux-artefacts-arm:latest --load -f ./docker/Build_artefacts_arm64v8 .
52+
mkdir -p ./build/installers
53+
docker cp $(docker create figma-linux-artefacts-arm:latest)://usr/src/figma-linux/build/installers/. ./build/installers
54+
55+
- name: Cache arm64v8 artifacts
56+
id: cache-arm64v8-artifacts
57+
uses: nanoufo/action-upload-artifacts-and-release-assets@main
58+
with:
59+
path: build/installers/figma-linux_*.*
60+
61+
build_amd64:
62+
runs-on: ubuntu-latest
63+
name: build for amd64
64+
needs: setup
65+
steps:
66+
- uses: actions/download-artifact@v3
67+
with:
68+
name: repo
69+
path: ./
70+
71+
- name: Setup
72+
run: |
73+
chmod +wr . -R
74+
chmod +x ./**/*.sh
75+
chmod +x ./**/*.pl
76+
77+
- name: Build in Docker
78+
id: build
79+
run: |
80+
docker build -t figma-linux-artefacts -f "./docker/Build_artefacts_local" --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) .
81+
mkdir -p ./build/installers
82+
docker cp $(docker create figma-linux-artefacts:latest)://usr/src/figma-linux/build/installers/. ./build/installers
83+
mv ./build/installers/figma-linux_$(cat build/installers/version)_linux_x64.zip ./build/installers/figma-linux_$(cat build/installers/version)_linux_amd64.zip
84+
85+
- name: Cache amd64 artifacts
86+
id: cache-amd64-artifacts
87+
uses: nanoufo/action-upload-artifacts-and-release-assets@main
88+
with:
89+
path: build/installers/figma-linux_*.*

.github/workflows/build_ppa.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ jobs:
1515
steps:
1616
- name: Checkout project
1717
id: checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Checkout on latest tag
2323
run: |
2424
# git tag
25-
# git tag | tail -1
26-
# git checkout $(git tag | tail -1)
25+
# git tag --sort=version:refname | tail -1
26+
# git checkout $(git tag --sort=version:refname | tail -1)
2727
# git status
2828
chmod +x ./**/*.sh
2929
chmod +x ./**/*.pl
30-
perl ./scripts/update_rev_changelog.pl "$(git tag | tail -1 | tr -d 'v')" "${{ github.event.inputs.rev }}"
30+
perl ./scripts/update_rev_changelog.pl "$(git tag --sort=version:refname | tail -1 | tr -d 'v')" "${{ github.event.inputs.rev }}"
3131
3232
- name: Cache src
3333
id: cache-src
34-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v3
3535
with:
3636
name: repo
3737
path: ./*
@@ -41,7 +41,7 @@ jobs:
4141
name: build for amd64
4242
needs: setup
4343
steps:
44-
- uses: actions/download-artifact@v2
44+
- uses: actions/download-artifact@v3
4545
with:
4646
name: repo
4747
path: ./
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: Cache amd64 artifacts
6363
id: cache-amd64-artifacts
64-
uses: actions/upload-artifact@v2
64+
uses: actions/upload-artifact@v3
6565
with:
6666
name: amd64
6767
path: build/installers/*
@@ -71,7 +71,7 @@ jobs:
7171
runs-on: ubuntu-latest
7272
needs: build_amd64
7373
steps:
74-
- uses: actions/download-artifact@v2
74+
- uses: actions/download-artifact@v3
7575
with:
7676
path: ./
7777

.github/workflows/main.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Release Build
22

33
on:
44
create:
@@ -12,13 +12,13 @@ jobs:
1212
steps:
1313
- name: Checkout project
1414
id: checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Cache src
2020
id: cache-src
21-
uses: actions/upload-artifact@v2
21+
uses: actions/upload-artifact@v3
2222
with:
2323
name: repo
2424
path: ./*
@@ -28,7 +28,7 @@ jobs:
2828
name: build for arm64v8
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/download-artifact@v2
31+
- uses: actions/download-artifact@v3
3232
with:
3333
name: repo
3434
path: ./
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Cache arm64v8 artifacts
5757
id: cache-arm64v8-artifacts
58-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v3
5959
with:
6060
name: arm64v8
6161
path: build/installers/*
@@ -68,7 +68,7 @@ jobs:
6868
- name: mkdir installers
6969
run: mkdir -p ./build/installers
7070

71-
- uses: actions/download-artifact@v2
71+
- uses: actions/download-artifact@v3
7272
with:
7373
name: arm64v8
7474
path: ./build/installers
@@ -94,7 +94,7 @@ jobs:
9494
name: build for amd64
9595
needs: setup
9696
steps:
97-
- uses: actions/download-artifact@v2
97+
- uses: actions/download-artifact@v3
9898
with:
9999
name: repo
100100
path: ./
@@ -116,7 +116,7 @@ jobs:
116116
117117
- name: Cache amd64 artifacts
118118
id: cache-amd64-artifacts
119-
uses: actions/upload-artifact@v2
119+
uses: actions/upload-artifact@v3
120120
with:
121121
name: amd64
122122
path: |
@@ -131,7 +131,7 @@ jobs:
131131
- name: mkdir installers
132132
run: mkdir -p ./build/installers
133133

134-
- uses: actions/download-artifact@v2
134+
- uses: actions/download-artifact@v3
135135
with:
136136
name: amd64
137137
path: ./
@@ -158,7 +158,7 @@ jobs:
158158
runs-on: ubuntu-latest
159159
needs: build_amd64
160160
steps:
161-
- uses: actions/download-artifact@v2
161+
- uses: actions/download-artifact@v3
162162
with:
163163
path: ./
164164

@@ -191,7 +191,7 @@ jobs:
191191
runs-on: ubuntu-latest
192192
needs: release_amd64
193193
steps:
194-
- uses: actions/download-artifact@v2
194+
- uses: actions/download-artifact@v3
195195
with:
196196
path: ./
197197

@@ -256,7 +256,7 @@ jobs:
256256
runs-on: ubuntu-latest
257257
needs: release_amd64
258258
steps:
259-
- uses: actions/download-artifact@v2
259+
- uses: actions/download-artifact@v3
260260
with:
261261
path: ./
262262

.github/workflows/update_amd64_assets.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
steps:
1010
- name: Checkout project
1111
id: checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515

1616
- name: Cache src
1717
id: cache-src
18-
uses: actions/upload-artifact@v2
18+
uses: actions/upload-artifact@v3
1919
with:
2020
name: repo
2121
path: ./*
@@ -25,7 +25,7 @@ jobs:
2525
name: build for amd64
2626
needs: setup
2727
steps:
28-
- uses: actions/download-artifact@v2
28+
- uses: actions/download-artifact@v3
2929
with:
3030
name: repo
3131
path: ./
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Cache amd64 artifacts
4848
id: cache-amd64-artifacts
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
5050
with:
5151
name: amd64
5252
path: build/installers/*
@@ -59,7 +59,7 @@ jobs:
5959
- name: mkdir installers
6060
run: mkdir -p ./build/installers
6161

62-
- uses: actions/download-artifact@v2
62+
- uses: actions/download-artifact@v3
6363
with:
6464
name: amd64
6565
path: ./build/installers

0 commit comments

Comments
 (0)