Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
d665adf7
Commit
d665adf7
authored
Sep 18, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove outdate build artifacts action
parent
1c27824e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
87 deletions
+0
-87
build-artifacts.yml
.github/workflows/build-artifacts.yml
+0
-87
No files found.
.github/workflows/build-artifacts.yml
deleted
100644 → 0
View file @
1c27824e
name
:
build-artifacts
on
:
push
:
branches
:
# Run on pushing branches like `release/1.0.0`
-
"
release/*.*.*"
jobs
:
build-artifacts
:
runs-on
:
${{ matrix.os }}
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
]
goarch
:
[
amd64
,
arm64
]
include
:
-
os
:
windows-latest
goos
:
windows
goarch
:
amd64
cgo_env
:
CC=x86_64-w64-mingw32-gcc
env
:
GOOS
:
${{ matrix.goos }}
GOARCH
:
${{ matrix.goarch }}
CGO_ENABLED
:
1
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v2
-
name
:
Clone Memos
run
:
git clone https://github.com/usememos/memos.git
-
name
:
Setup Node.js
uses
:
actions/setup-node@v2
with
:
node-version
:
"
18"
-
name
:
Build frontend (Windows)
if
:
matrix.os == 'windows-latest'
shell
:
pwsh
run
:
|
cd memos/web
npm install -g pnpm
pnpm i --frozen-lockfile
pnpm build
Remove-Item -Path ../server/dist -Recurse -Force
mv dist ../server/
-
name
:
Build frontend (non-Windows)
if
:
matrix.os != 'windows-latest'
run
:
|
cd memos/web
npm install -g pnpm
pnpm i --frozen-lockfile
pnpm build
rm -rf ../server/dist
mv dist ../server/
-
name
:
Setup Go
uses
:
actions/setup-go@v3
with
:
go-version
:
1.21
-
name
:
Install mingw-w64 (Windows)
if
:
matrix.os == 'windows-latest'
run
:
|
choco install mingw
echo ${{ matrix.cgo_env }} >> $GITHUB_ENV
-
name
:
Install gcc-aarch64-linux-gnu (Ubuntu ARM64)
if
:
matrix.os == 'ubuntu-latest' && matrix.goarch == 'arm64'
run
:
|
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
-
name
:
Build backend
run
:
|
cd memos
go build -o memos-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.os == 'windows-latest' && '.exe' || '' }} ./main.go
-
name
:
Upload artifacts
uses
:
actions/upload-artifact@v2
with
:
name
:
memos-binary-${{ matrix.os }}-${{ matrix.goarch }}
path
:
memos/memos-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.os == 'windows-latest' && '.exe' || '' }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment