-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add try-with-finally expressions
- Loading branch information
1 parent
cbb64ce
commit 54c22a3
Showing
7 changed files
with
254,362 additions
and
232,271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build/release | ||
on: | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [macos-latest, ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: "develop" | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- run: npm install | ||
- run: npm test | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout develop branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "develop" | ||
- name: Fetch main branch | ||
run: | | ||
git fetch origin main | ||
git branch -t main origin/main | ||
- name: "remove src/parser.c from .gitignore" | ||
run: sed -i '/src\/parser.c/d' .gitignore | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- name: "compile main branch" | ||
run: | | ||
npm install | ||
npm run build | ||
- name: Merge into main branch and publish | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git add . | ||
tree=$(git write-tree) | ||
commit=$(git commit-tree -p main -p develop -m "release" $tree) | ||
git update-ref refs/heads/main $commit | ||
git push origin main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
do | ||
if b then | ||
1 | ||
else | ||
2 | ||
try | ||
() | ||
with | ||
| _ -> () | ||
| _ -> () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.