Skip to content

Commit

Permalink
github action build
Browse files Browse the repository at this point in the history
  • Loading branch information
HackerShohag committed Oct 9, 2023
1 parent 8463aae commit 4d679a2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 18 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Release

on:
push:
branches:
- '**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v1
with:
fetch-depth: 0

- name: Set Current Version as Environment Variable
run: |
echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 16.14.0
cache: "npm"

- name: Install dependencies
run: |
npm install vscode --save-dev
npm install -g @vscode/vsce
- name: Build App
run: vsce package

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-build-artifacts
path: assembler*.vsix

- name: Release Artifacts
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.VSCODE_EXT }}"
automatic_release_tag: "v${{ env.VERSION }}"
prerelease: false
title: "Release (${{ env.VERSION }})"
files: assembler*.vsix
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,22 @@ main:

**For macOS (Due to Compiler Dependency):**
```assembly
global _main
extern _puts
section .text
_main:
sub rsp, 8
lea rdi, [message] ; Use this instead of 'mov rdi, message'
call _puts
add rsp, 8
ret
section .data
message:
default rel ; Add 'default rel' under label
db "Hello, world",0
global _main
extern _puts
section .text
_main:
sub rsp, 8
lea rdi, [message] ; Use this instead of 'mov rdi, message'
call _puts
add rsp, 8
ret
section .data
message:
default rel ; Add 'default rel' under label
db "Hello, world",0
```

## Author
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d679a2

Please sign in to comment.